aboutsummaryrefslogtreecommitdiffstats
path: root/lib/compiler/src/compile.erl
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2017-07-07 11:51:04 +0200
committerGitHub <[email protected]>2017-07-07 11:51:04 +0200
commitd256e32d4a0dc427f617fd1c832a9140162ade37 (patch)
treea1bac9d02fdcebf7903d5bed2b2ca92a00be9e3f /lib/compiler/src/compile.erl
parent1c3a893a5abd05330e1ebc0bce8b4219fa368917 (diff)
parentd4a27e98cb1c11340b296004d784b15f80d015e9 (diff)
downloadotp-d256e32d4a0dc427f617fd1c832a9140162ade37.tar.gz
otp-d256e32d4a0dc427f617fd1c832a9140162ade37.tar.bz2
otp-d256e32d4a0dc427f617fd1c832a9140162ade37.zip
Merge pull request #1080 from josevalim/jv-sys-core-replace
Introduce a new core pass called sys_core_alias OTP-14505
Diffstat (limited to 'lib/compiler/src/compile.erl')
-rw-r--r--lib/compiler/src/compile.erl7
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/compiler/src/compile.erl b/lib/compiler/src/compile.erl
index aa2d224bb4..ec7e7aed14 100644
--- a/lib/compiler/src/compile.erl
+++ b/lib/compiler/src/compile.erl
@@ -706,14 +706,16 @@ core_passes() ->
[{unless,no_copt,
[{core_old_inliner,fun test_old_inliner/1,fun core_old_inliner/2},
{iff,doldinline,{listing,"oldinline"}},
- {pass,sys_core_fold},
+ {unless,no_fold,{pass,sys_core_fold}},
{iff,dcorefold,{listing,"corefold"}},
{core_inline_module,fun test_core_inliner/1,fun core_inline_module/2},
{iff,dinline,{listing,"inline"}},
{core_fold_after_inlining,fun test_any_inliner/1,
fun core_fold_module_after_inlining/2},
+ {iff,dcopt,{listing,"copt"}},
+ {unless,no_alias,{pass,sys_core_alias}},
+ {iff,dalias,{listing,"core_alias"}},
?pass(core_transforms)]},
- {iff,dcopt,{listing,"copt"}},
{iff,'to_core',{done,"core"}}]}
| kernel_passes()].
@@ -1921,6 +1923,7 @@ pre_load() ->
erl_lint,
erl_parse,
erl_scan,
+ sys_core_alias,
sys_core_bsm,
sys_core_dsetel,
sys_core_fold,