aboutsummaryrefslogtreecommitdiffstats
path: root/otp_build
diff options
context:
space:
mode:
authorBjörn Gustavsson <bjorn@erlang.org>2012-08-09 15:33:11 +0200
committerBjörn Gustavsson <bjorn@erlang.org>2012-10-09 10:09:39 +0200
commit34afddc135ff25cefa75aee70b8d09186f78085e (patch)
tree1886f0a3c39b11715f37ae05d4205dec46d48d7d /otp_build
parent3605e00470d8e04710317b88e135e28082ff27d3 (diff)
downloadotp-34afddc135ff25cefa75aee70b8d09186f78085e.tar.gz
otp-34afddc135ff25cefa75aee70b8d09186f78085e.tar.bz2
otp-34afddc135ff25cefa75aee70b8d09186f78085e.zip
beam_bool: Recognize more safe optimizations
The optimizer of boolean expressions can often reject optimizations that it does not recognize as safe. For instance, if a boolean expression was preceded by 'move' instructions that saved x registers into y registers, it would almost certainly reject the optimization because it required the y register not be used in the code that follows. Fix this problem by allowing identical 'move' instructions that assing to y registers at the beginning of the old and the optimized code. While at it, correct the spelling of "preceding".
Diffstat (limited to 'otp_build')
0 files changed, 0 insertions, 0 deletions