aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/beam/ops.tab
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2016-04-06 07:13:26 +0200
committerBjörn Gustavsson <[email protected]>2016-04-07 15:28:29 +0200
commit921c838b8142d3c8d1739c6b30c6d88e39e5f147 (patch)
tree0f0186a02e24ecb1d9004cec433011945d323c63 /erts/emulator/beam/ops.tab
parent4f33597d52a0cef2e47b07578bc8a35a17c2f969 (diff)
downloadotp-921c838b8142d3c8d1739c6b30c6d88e39e5f147.tar.gz
otp-921c838b8142d3c8d1739c6b30c6d88e39e5f147.tar.bz2
otp-921c838b8142d3c8d1739c6b30c6d88e39e5f147.zip
Eliminate unnecessary renaming of bs_put_utf16/3
There is no reason to rename bs_put_utf16/3. (We rename instructions if we'll need to change the operands or if we will need to avoid an endless transformation loop. Neither of these reasons apply to bs_put_utf16/3.)
Diffstat (limited to 'erts/emulator/beam/ops.tab')
-rw-r--r--erts/emulator/beam/ops.tab4
1 files changed, 1 insertions, 3 deletions
diff --git a/erts/emulator/beam/ops.tab b/erts/emulator/beam/ops.tab
index 485c072540..15f27835a8 100644
--- a/erts/emulator/beam/ops.tab
+++ b/erts/emulator/beam/ops.tab
@@ -1350,9 +1350,7 @@ bs_put_utf8 Fail u Src=s => i_bs_put_utf8 Fail Src
i_bs_put_utf8 j s
-bs_put_utf16 Fail Flags=u Src=s => i_bs_put_utf16 Fail Flags Src
-
-i_bs_put_utf16 j I s
+bs_put_utf16 j I s
bs_put_utf32 Fail=j Flags=u Src=s => \
i_bs_validate_unicode Fail Src | bs_put_integer Fail i=32 u=1 Flags Src