More let-floating
This commit is contained in:
parent
c8153f94a6
commit
0a22c7a34a
@ -1231,6 +1231,9 @@ let_float(_, {proj, E, I}) ->
|
|||||||
pull_out_let({proj, {here, E}, I});
|
pull_out_let({proj, {here, E}, I});
|
||||||
let_float(_, {set_proj, E, I, V}) ->
|
let_float(_, {set_proj, E, I, V}) ->
|
||||||
pull_out_let({set_proj, {here, E}, I, {here, V}});
|
pull_out_let({set_proj, {here, E}, I, {here, V}});
|
||||||
|
let_float(_, {op, Op, Es}) ->
|
||||||
|
{Lets, Es1} = pull_out_let([{here, E} || E <- Es]),
|
||||||
|
let_bind(Lets, {op, Op, Es1});
|
||||||
let_float(_, E) -> E.
|
let_float(_, E) -> E.
|
||||||
|
|
||||||
pull_out_let(Expr) when is_tuple(Expr) ->
|
pull_out_let(Expr) when is_tuple(Expr) ->
|
||||||
|
Loading…
x
Reference in New Issue
Block a user