diff options
author | Magnus Lång <[email protected]> | 2016-11-10 12:25:49 +0100 |
---|---|---|
committer | Magnus Lång <[email protected]> | 2016-11-15 14:59:00 +0100 |
commit | 35f74834dc4130c613fea2a5483ba02ed43af2c4 (patch) | |
tree | 27e1819f8a5e6150f69108baea22aa7a89b8530e /lib | |
parent | 8cf7ad0fd02d5fd4100e23e61e1caa56726a0494 (diff) | |
download | otp-35f74834dc4130c613fea2a5483ba02ed43af2c4.tar.gz otp-35f74834dc4130c613fea2a5483ba02ed43af2c4.tar.bz2 otp-35f74834dc4130c613fea2a5483ba02ed43af2c4.zip |
hipe_sparc: move coalescing
Diffstat (limited to 'lib')
-rw-r--r-- | lib/hipe/sparc/hipe_sparc_frame.erl | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/hipe/sparc/hipe_sparc_frame.erl b/lib/hipe/sparc/hipe_sparc_frame.erl index 37f29e660a..bd94d3318c 100644 --- a/lib/hipe/sparc/hipe_sparc_frame.erl +++ b/lib/hipe/sparc/hipe_sparc_frame.erl @@ -110,7 +110,10 @@ do_pseudo_move(I, Context, FPoff) -> Offset = pseudo_offset(Src, FPoff, Context), mk_load(hipe_sparc:mk_sp(), Offset, Dst, []); _ -> - [hipe_sparc:mk_mov(Src, Dst)] + case hipe_sparc:temp_reg(Dst) =:= hipe_sparc:temp_reg(Src) of + true -> []; + false -> [hipe_sparc:mk_mov(Src, Dst)] + end end end. |