aboutsummaryrefslogtreecommitdiffstats
path: root/lib/hipe/x86
diff options
context:
space:
mode:
authorSverker Eriksson <[email protected]>2016-08-26 12:28:16 +0200
committerSverker Eriksson <[email protected]>2016-08-26 12:28:16 +0200
commitd017ade88b8fa39f57aee722dd2e2c5d82e8b262 (patch)
tree59a0b949d0452f38c52f5d9b1d0e3a57c0a4cbd8 /lib/hipe/x86
parentfbff3418f1c2ac658c6ff5ee808b4a2af0e70c9e (diff)
parentf3e018dc3bb3c74b88c7454f6a1888938215f912 (diff)
downloadotp-d017ade88b8fa39f57aee722dd2e2c5d82e8b262.tar.gz
otp-d017ade88b8fa39f57aee722dd2e2c5d82e8b262.tar.bz2
otp-d017ade88b8fa39f57aee722dd2e2c5d82e8b262.zip
Merge branch 'maint'
Diffstat (limited to 'lib/hipe/x86')
-rw-r--r--lib/hipe/x86/hipe_x86_postpass.erl3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/hipe/x86/hipe_x86_postpass.erl b/lib/hipe/x86/hipe_x86_postpass.erl
index 939baeccec..4515822a34 100644
--- a/lib/hipe/x86/hipe_x86_postpass.erl
+++ b/lib/hipe/x86/hipe_x86_postpass.erl
@@ -95,7 +95,8 @@ peep([I=#move{src=#x86_temp{reg=Src}, dst=#x86_temp{reg=Dst}},
%% ElimBinALMDouble
%% ----------------
-peep([Move=#move{src=Src, dst=Dst}, Alu=#alu{src=Src, dst=Dst}|Insns], Res, Lst) ->
+peep([Move=#move{src=Src, dst=Dst}, Alu=#alu{src=Src, dst=Dst}|Insns], Res, Lst)
+ when not is_record(Dst, x86_mem) ->
peep([Alu#alu{src=Dst}|Insns], [Move|Res], [elimBinALMDouble|Lst]);