aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2019-01-17 08:16:50 +0100
committerBjörn Gustavsson <[email protected]>2019-01-18 05:45:59 +0100
commitceb43f022dcb1f461c53773392a40a4afbc291cf (patch)
tree4beb42ca12c2371453e5bd55f36a4c7cc28ce91e /lib
parenta9f0df66e2b4c483fc92d835ac77ded1529aa420 (diff)
downloadotp-ceb43f022dcb1f461c53773392a40a4afbc291cf.tar.gz
otp-ceb43f022dcb1f461c53773392a40a4afbc291cf.tar.bz2
otp-ceb43f022dcb1f461c53773392a40a4afbc291cf.zip
beam_ssa_opt: Run ssa_opt_tuple_size early
Running ssa_opt_tuple_size early will give more opportunities for optimizations.
Diffstat (limited to 'lib')
-rw-r--r--lib/compiler/src/beam_ssa_opt.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/compiler/src/beam_ssa_opt.erl b/lib/compiler/src/beam_ssa_opt.erl
index df40c918b2..6f7044f006 100644
--- a/lib/compiler/src/beam_ssa_opt.erl
+++ b/lib/compiler/src/beam_ssa_opt.erl
@@ -52,6 +52,7 @@ passes(Opts0) ->
?PASS(ssa_opt_coalesce_phis),
?PASS(ssa_opt_element),
?PASS(ssa_opt_linearize),
+ ?PASS(ssa_opt_tuple_size),
?PASS(ssa_opt_record),
%% Run ssa_opt_cse twice, because it will help ssa_opt_dead,
@@ -75,7 +76,6 @@ passes(Opts0) ->
?PASS(ssa_opt_bsm),
?PASS(ssa_opt_bsm_units),
?PASS(ssa_opt_bsm_shortcut),
- ?PASS(ssa_opt_tuple_size),
?PASS(ssa_opt_sw),
?PASS(ssa_opt_blockify),
?PASS(ssa_opt_sink),