aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/beam/beam_load.c
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2016-04-06 07:02:36 +0200
committerBjörn Gustavsson <[email protected]>2016-04-07 15:28:29 +0200
commit4f33597d52a0cef2e47b07578bc8a35a17c2f969 (patch)
treefb7dd1c6fe06bfe9f35ed128305b439cbdce5d17 /erts/emulator/beam/beam_load.c
parent72bec464764c919cbfbd2db1c86cce227b2b9c42 (diff)
downloadotp-4f33597d52a0cef2e47b07578bc8a35a17c2f969.tar.gz
otp-4f33597d52a0cef2e47b07578bc8a35a17c2f969.tar.bz2
otp-4f33597d52a0cef2e47b07578bc8a35a17c2f969.zip
Don't let the loader do the compiler's job
Optimizations that are possible to do by the compiler should be done by the compiler and not by the loader. If the compiler has done its job correctly, attempting to do the two transformations only wastes time.
Diffstat (limited to 'erts/emulator/beam/beam_load.c')
-rw-r--r--erts/emulator/beam/beam_load.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/erts/emulator/beam/beam_load.c b/erts/emulator/beam/beam_load.c
index bdb451a6fe..a98900460e 100644
--- a/erts/emulator/beam/beam_load.c
+++ b/erts/emulator/beam/beam_load.c
@@ -2736,13 +2736,6 @@ mixed_types(LoaderState* stp, GenOpArg Size, GenOpArg* Rest)
}
static int
-same_label(LoaderState* stp, GenOpArg Target, GenOpArg Label)
-{
- return Target.type = TAG_f && Label.type == TAG_u &&
- Target.val == Label.val;
-}
-
-static int
is_killed_apply(LoaderState* stp, GenOpArg Reg, GenOpArg Live)
{
return Reg.type == TAG_x && Live.type == TAG_u &&