diff options
author | Björn Gustavsson <[email protected]> | 2010-11-11 12:18:50 +0100 |
---|---|---|
committer | Björn Gustavsson <[email protected]> | 2011-01-17 15:23:40 +0100 |
commit | d734f64cc5b4e8b906f0d4f1b28f67c492a05bae (patch) | |
tree | 1f2b9a36ac1936c6d2a2a27ce78bf4f5fb9c2b15 /erts/emulator/beam/beam_load.c | |
parent | 21cd0c4f8654286ce8b14157529fcfc916fc209e (diff) | |
download | otp-d734f64cc5b4e8b906f0d4f1b28f67c492a05bae.tar.gz otp-d734f64cc5b4e8b906f0d4f1b28f67c492a05bae.tar.bz2 otp-d734f64cc5b4e8b906f0d4f1b28f67c492a05bae.zip |
Eliminate redundant jump instructions
Diffstat (limited to 'erts/emulator/beam/beam_load.c')
-rw-r--r-- | erts/emulator/beam/beam_load.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/erts/emulator/beam/beam_load.c b/erts/emulator/beam/beam_load.c index cf87e111db..65cd6f91bb 100644 --- a/erts/emulator/beam/beam_load.c +++ b/erts/emulator/beam/beam_load.c @@ -2260,6 +2260,14 @@ mixed_types(LoaderState* stp, GenOpArg Size, GenOpArg* Rest) return 0; } +static int +same_label(LoaderState* stp, GenOpArg Target, GenOpArg Label) +{ + return Target.type = TAG_f && Label.type == TAG_u && + Target.val == Label.val; +} + + /* * Generate an instruction for element/2. */ |