Skip to content

Commit

Permalink
Merge branch 'bg/compiler-fmove-opt' into dev
Browse files Browse the repository at this point in the history
* bg/compiler-fmove-opt:
  beam_type: Improve coalescing of fmove/2 and move/2 instructions
  • Loading branch information
Erlang/OTP committed Apr 20, 2010
2 parents 09ca69e + e965d90 commit 8d1088d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/compiler/src/beam_type.erl
Expand Up @@ -183,7 +183,7 @@ simplify_float_1([], Ts, Rs, Acc0) ->
{Is,Ts}.

opt_fmoves([{set,[{x,_}=R],[{fr,_}]=Src,fmove}=I1,
{set,[{y,_}]=Dst,[{x,_}=R],move}=I2|Is], Acc) ->
{set,[_]=Dst,[{x,_}=R],move}=I2|Is], Acc) ->
case beam_utils:is_killed_block(R, Is) of
false -> opt_fmoves(Is, [I2,I1|Acc]);
true -> opt_fmoves(Is, [{set,Dst,Src,fmove}|Acc])
Expand Down

0 comments on commit 8d1088d

Please sign in to comment.