aboutsummaryrefslogtreecommitdiffstats
path: root/lib/compiler/test/bif_SUITE.erl
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2016-09-13 12:35:24 +0200
committerBjörn Gustavsson <[email protected]>2016-09-13 13:27:28 +0200
commit81c5e15544679baeeb8c18b72156b79aa4badebb (patch)
tree349fc1c561856341e6406306e411b4aa5a6705fe /lib/compiler/test/bif_SUITE.erl
parentec56f41f7a48055896037ac77927b99202371e62 (diff)
downloadotp-81c5e15544679baeeb8c18b72156b79aa4badebb.tar.gz
otp-81c5e15544679baeeb8c18b72156b79aa4badebb.tar.bz2
otp-81c5e15544679baeeb8c18b72156b79aa4badebb.zip
beam_validator: Handle unreachable instructions
ab03678e introduced an optimization in the beam_z pass that could introduce unreachable code in BEAM files (a 'jump' instruction is removed after a 'raise' instruction, but the code following the target of the 'jump' is not removed). Since this situation happens very rarely, there is no point in adding another pass that can remove unreachable code after beam_z. Instead we will make sure that beam_validator can skip the unreachable code. Skipping unreachable code is already done in valfun_1/2 (for historical reasons), but we will also need to do it in val_dsetel/2.
Diffstat (limited to 'lib/compiler/test/bif_SUITE.erl')
0 files changed, 0 insertions, 0 deletions