aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/beam/arith_instrs.tab
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2017-09-24 07:53:18 +0200
committerBjörn Gustavsson <[email protected]>2017-10-01 07:08:19 +0200
commitf589687e9bd172f6f7841043a8de05d260889c8b (patch)
treeb5f2582f591c2e4f2a1f48cb6d19bf70849e8575 /erts/emulator/beam/arith_instrs.tab
parentb597ba86170ee142790e97ae298cf8b7c2797ce2 (diff)
downloadotp-f589687e9bd172f6f7841043a8de05d260889c8b.tar.gz
otp-f589687e9bd172f6f7841043a8de05d260889c8b.tar.bz2
otp-f589687e9bd172f6f7841043a8de05d260889c8b.zip
Move out variables from the head of combined instructions
Move out from the head the variables that are only used in the excute phase.
Diffstat (limited to 'erts/emulator/beam/arith_instrs.tab')
-rw-r--r--erts/emulator/beam/arith_instrs.tab8
1 files changed, 4 insertions, 4 deletions
diff --git a/erts/emulator/beam/arith_instrs.tab b/erts/emulator/beam/arith_instrs.tab
index 23fdb6d5b5..b828e86788 100644
--- a/erts/emulator/beam/arith_instrs.tab
+++ b/erts/emulator/beam/arith_instrs.tab
@@ -85,9 +85,6 @@ i_increment := increment.fetch.execute;
increment.head() {
Eterm increment_reg_val;
- Eterm increment_val;
- Uint live;
- Eterm result;
}
increment.fetch(Src) {
@@ -95,7 +92,10 @@ increment.fetch(Src) {
}
increment.execute(IncrementVal, Live, Dst) {
- increment_val = $IncrementVal;
+ Eterm increment_val = $IncrementVal;
+ Uint live;
+ Eterm result;
+
if (ERTS_LIKELY(is_small(increment_reg_val))) {
Sint i = signed_val(increment_reg_val) + increment_val;
if (ERTS_LIKELY(IS_SSMALL(i))) {