aboutsummaryrefslogtreecommitdiffstats
path: root/lib/compiler/src/compile.erl
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2015-09-21 14:27:30 +0200
committerBjörn Gustavsson <[email protected]>2015-09-28 10:26:39 +0200
commit8372f56a06ef24cf4455a54e15d876ab6ca8c570 (patch)
tree3a9de9ec5648549585423618ed48f3c1b976383c /lib/compiler/src/compile.erl
parentf7fd259f27bce0058d996af6287e6bb81d12ea47 (diff)
downloadotp-8372f56a06ef24cf4455a54e15d876ab6ca8c570.tar.gz
otp-8372f56a06ef24cf4455a54e15d876ab6ca8c570.tar.bz2
otp-8372f56a06ef24cf4455a54e15d876ab6ca8c570.zip
Move out bit syntax optimizations from beam_block
In the future we might want to add more bit syntax optimizations, but beam_block is already sufficiently complicated. Therefore, move the bit syntax optimizations out of beam_block into a separate compiler pass called beam_bs.
Diffstat (limited to 'lib/compiler/src/compile.erl')
-rw-r--r--lib/compiler/src/compile.erl2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/compiler/src/compile.erl b/lib/compiler/src/compile.erl
index 605f5b8fd5..a2a23a2b90 100644
--- a/lib/compiler/src/compile.erl
+++ b/lib/compiler/src/compile.erl
@@ -679,6 +679,8 @@ asm_passes() ->
{iff,dblk,{listing,"block"}},
{unless,no_except,{pass,beam_except}},
{iff,dexcept,{listing,"except"}},
+ {unless,no_bs_opt,{pass,beam_bs}},
+ {iff,dbs,{listing,"bs"}},
{unless,no_bopt,{pass,beam_bool}},
{iff,dbool,{listing,"bool"}},
{unless,no_topt,{pass,beam_type}},