aboutsummaryrefslogtreecommitdiffstats
path: root/xcomp
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2015-01-12 14:51:23 +0100
committerBjörn Gustavsson <[email protected]>2015-03-09 09:59:37 +0100
commit8997433288cb571f155c509f402d0ba4fdba5025 (patch)
tree25930ba0c17b0bb93ec7aff700259e3961a428e6 /xcomp
parent0a0d39d351fc2008447bb4a5e22e48f429fe4d93 (diff)
downloadotp-8997433288cb571f155c509f402d0ba4fdba5025.tar.gz
otp-8997433288cb571f155c509f402d0ba4fdba5025.tar.bz2
otp-8997433288cb571f155c509f402d0ba4fdba5025.zip
beam_bool: Correct initialized_regs/2
initialized_regs/2 did not handle allocating instructions; instead treating them as any other 'set' instruction. The consequences could be one or both of the following: Going past the allocating instruction (looking at more instructions) would mean that initialized_regs/2 could return registers that were not actually initialized. That could mean that MustBeKilled in ensure_opt_safe/6 could contain too few registers, and that the code that followed tried to use an uninitialized register. The beam_validator should have detected that problem. Not taking account the number of live registers in the allocating instruction could mean that some registers were not found to be initialized, which could mean that MustBeKilled would contain too many registers. That would mean a missed optimization.
Diffstat (limited to 'xcomp')
0 files changed, 0 insertions, 0 deletions