diff options
author | Magnus Lång <[email protected]> | 2016-09-24 09:42:01 +0200 |
---|---|---|
committer | Magnus Lång <[email protected]> | 2016-11-15 14:59:00 +0100 |
commit | df04801d5585f52ddc042d30873bdc95da019af6 (patch) | |
tree | b803d4b450ffbde43bac39ac2375f9c23971ce5f /lib/hipe/x86/hipe_rtl_to_x86.erl | |
parent | 35f74834dc4130c613fea2a5483ba02ed43af2c4 (diff) | |
download | otp-df04801d5585f52ddc042d30873bdc95da019af6.tar.gz otp-df04801d5585f52ddc042d30873bdc95da019af6.tar.bz2 otp-df04801d5585f52ddc042d30873bdc95da019af6.zip |
hipe_x86: LeaToAdd peephole rule
Although LEA is useful for three-address form adds, sometimes it is used
where a normal add would have sufficed (due to the addition being the
last use of one of the operands; but RTL lowering does not know that as
it does not have liveness information). As a workaround, we convert LEA
back to ADD when the destination is the same as one of the operands.
Diffstat (limited to 'lib/hipe/x86/hipe_rtl_to_x86.erl')
0 files changed, 0 insertions, 0 deletions