aboutsummaryrefslogtreecommitdiffstats
path: root/lib/compiler/test/guard_SUITE.erl
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2018-08-30 05:22:13 +0200
committerBjörn Gustavsson <[email protected]>2018-09-12 14:19:06 +0200
commitf89331e61b5b6fc6eadc289d4ce126d6a4219238 (patch)
tree3fa5dcda7e66040902359188f587b0d192745738 /lib/compiler/test/guard_SUITE.erl
parentc49e888ecdebab753500a1f17c62849a13a18a85 (diff)
downloadotp-f89331e61b5b6fc6eadc289d4ce126d6a4219238.tar.gz
otp-f89331e61b5b6fc6eadc289d4ce126d6a4219238.tar.bz2
otp-f89331e61b5b6fc6eadc289d4ce126d6a4219238.zip
beam_ssa_opt: Add simplification of switch lists
When the argument for a #b_switch{} comes from a phi node with only literal values, the switch list could be pruned to only contain the possible values. It could also be possible to eliminate the failure label. Also simplify a switch with a single value list or switch that can be replaced with an is_boolean test.
Diffstat (limited to 'lib/compiler/test/guard_SUITE.erl')
0 files changed, 0 insertions, 0 deletions