aboutsummaryrefslogtreecommitdiffstats
path: root/.gitattributes
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2018-08-25 10:21:17 +0200
committerBjörn Gustavsson <[email protected]>2018-09-12 14:19:06 +0200
commit07dd8d0a1632d446f5bc4bde9cc10fb1b112f4a1 (patch)
tree1fde09a768eb2e3c60bb4139b27d260255db23ef /.gitattributes
parent8e4f23224a90d35683dbd45007682c861c4eb354 (diff)
downloadotp-07dd8d0a1632d446f5bc4bde9cc10fb1b112f4a1.tar.gz
otp-07dd8d0a1632d446f5bc4bde9cc10fb1b112f4a1.tar.bz2
otp-07dd8d0a1632d446f5bc4bde9cc10fb1b112f4a1.zip
beam_ssa_opt: Fix liveness optimization
Add more instructions to the list of functions that can be safely removed if their values are not used. This is necessary for correctness when doing more aggressive optimizations. Without this change, the 'succeeded' instruction could be optimized away leaving just the instruction followed by an unconditional branch, which the beam_ssa_codegen does not know how to handle. Here is an example: _3 = bs_start_match _1 br label 13 By adding bs_start_match to the list, the bs_start_match instruction will be removed too. (If the result of bs_start_match is actually used, the succeeded instruction would not be removed.) While we are it, rename the misnamed function is_pure/1 to no_side_effect/1 and move it to beam_ssa. is_pure/1 is a bad name because bif:get has no side effect, but is not pure.
Diffstat (limited to '.gitattributes')
0 files changed, 0 insertions, 0 deletions