aboutsummaryrefslogtreecommitdiffstats
path: root/lib/hipe/x86
diff options
context:
space:
mode:
authorSverker Eriksson <[email protected]>2016-08-26 12:27:17 +0200
committerSverker Eriksson <[email protected]>2016-08-26 12:27:17 +0200
commitf3e018dc3bb3c74b88c7454f6a1888938215f912 (patch)
tree7f217508515647e557cf3c30c79badba9ab0f1dd /lib/hipe/x86
parent2a6750d0804d1e30a5463c8aaf5b7342fda967fe (diff)
parenta504c30efbc14381385a6ef911ba7296840f8cb7 (diff)
downloadotp-f3e018dc3bb3c74b88c7454f6a1888938215f912.tar.gz
otp-f3e018dc3bb3c74b88c7454f6a1888938215f912.tar.bz2
otp-f3e018dc3bb3c74b88c7454f6a1888938215f912.zip
Merge branch 'sverker/hipe-backend-bugs/PR-1146' into 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]);