diff options
author | John Högberg <[email protected]> | 2018-10-01 15:23:17 +0200 |
---|---|---|
committer | John Högberg <[email protected]> | 2018-10-03 13:42:10 +0200 |
commit | 31a4c1d65c24d8240d5d46d8cffe81097ebb28bf (patch) | |
tree | 39f2593781ab8d9029fe161b0da6bdad5943bdbd /lib/compiler/src/compiler.app.src | |
parent | 25d15bc981659947899499bbce6040868d73418f (diff) | |
download | otp-31a4c1d65c24d8240d5d46d8cffe81097ebb28bf.tar.gz otp-31a4c1d65c24d8240d5d46d8cffe81097ebb28bf.tar.bz2 otp-31a4c1d65c24d8240d5d46d8cffe81097ebb28bf.zip |
Optimize named funs and fun-wrapped macros
If a fun is defined locally and only used for calls, it can be replaced
with direct calls to the relevant function. This greatly speeds up "named
functions" (which rely on make_fun to recreate themselves) and macros that
wrap their body in a fun.
Diffstat (limited to 'lib/compiler/src/compiler.app.src')
-rw-r--r-- | lib/compiler/src/compiler.app.src | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/compiler/src/compiler.app.src b/lib/compiler/src/compiler.app.src index 7b802fdd62..86259270bd 100644 --- a/lib/compiler/src/compiler.app.src +++ b/lib/compiler/src/compiler.app.src @@ -39,6 +39,7 @@ beam_ssa_bsm, beam_ssa_codegen, beam_ssa_dead, + beam_ssa_funs, beam_ssa_lint, beam_ssa_opt, beam_ssa_pp, |