diff options
author | Björn Gustavsson <[email protected]> | 2016-09-13 12:35:24 +0200 |
---|---|---|
committer | Björn Gustavsson <[email protected]> | 2016-09-13 13:27:28 +0200 |
commit | 81c5e15544679baeeb8c18b72156b79aa4badebb (patch) | |
tree | 349fc1c561856341e6406306e411b4aa5a6705fe /otp_versions.table | |
parent | ec56f41f7a48055896037ac77927b99202371e62 (diff) | |
download | otp-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 'otp_versions.table')
0 files changed, 0 insertions, 0 deletions