aboutsummaryrefslogtreecommitdiffstats
path: root/lib/compiler/src/beam_ssa_opt.erl
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2019-01-31 06:42:35 +0100
committerBjörn Gustavsson <[email protected]>2019-02-01 12:46:43 +0100
commit939b7da053408682de888bd6423ff7e9cc6ea448 (patch)
tree1503bf6e895d7917ced9ce80a6f33ee3bdfb23ed /lib/compiler/src/beam_ssa_opt.erl
parente713179951d64d85450494d100caf0495ba9e104 (diff)
downloadotp-939b7da053408682de888bd6423ff7e9cc6ea448.tar.gz
otp-939b7da053408682de888bd6423ff7e9cc6ea448.tar.bz2
otp-939b7da053408682de888bd6423ff7e9cc6ea448.zip
Optimize beam_ssa:def_used/2
beam_ssa:def_used/2 is used by beam_ssa_pre_codegen when reserving Y registers. Do the following optimizations: * Use an ordset instead of a gb_set. When the only operation performed on a set is union/2, an ordset will usually be faster, especially when the result is an ordset. * Use a cerl_set instead of a gb_set for the set of all possible predecessors. cerl_sets is usually faster than gb_sets.
Diffstat (limited to 'lib/compiler/src/beam_ssa_opt.erl')
0 files changed, 0 insertions, 0 deletions