aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/beam/bs_instrs.tab
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2019-03-05 05:44:48 +0100
committerBjörn Gustavsson <[email protected]>2019-03-06 15:42:43 +0100
commitb96e5bd87c6aaaf96fa9c6e3679d95df74d1a499 (patch)
treeed075ffa80374c65fed94e1df802dfb07ae19e6b /erts/emulator/beam/bs_instrs.tab
parentdb9a338a0480067a6f05551ce62c33f3aaf1a08a (diff)
downloadotp-b96e5bd87c6aaaf96fa9c6e3679d95df74d1a499.tar.gz
otp-b96e5bd87c6aaaf96fa9c6e3679d95df74d1a499.tar.bz2
otp-b96e5bd87c6aaaf96fa9c6e3679d95df74d1a499.zip
Eliminate unused i_bs_skip_bits_all2 instruction
Starting in OTP 19 (in commit 9504c0dd71d0), the compiler emits a test_unit instruction instead of a skip instruction at the end of binary. We can do the same replacement in the loader to get rid of the i_bs_skip_bits_all2 instruction.
Diffstat (limited to 'erts/emulator/beam/bs_instrs.tab')
-rw-r--r--erts/emulator/beam/bs_instrs.tab10
1 files changed, 0 insertions, 10 deletions
diff --git a/erts/emulator/beam/bs_instrs.tab b/erts/emulator/beam/bs_instrs.tab
index 4cf7faffb7..10f43cd786 100644
--- a/erts/emulator/beam/bs_instrs.tab
+++ b/erts/emulator/beam/bs_instrs.tab
@@ -272,16 +272,6 @@ i_bs_skip_bits2.execute(Fail, Unit) {
}
}
-i_bs_skip_bits_all2(Fail, Ms, Unit) {
- ErlBinMatchBuffer *_mb;
- _mb = ms_matchbuffer($Ms);
- if (((_mb->size - _mb->offset) % $Unit) == 0) {
- _mb->offset = _mb->size;
- } else {
- $FAIL($Fail);
- }
-}
-
i_bs_skip_bits_imm2(Fail, Ms, Bits) {
ErlBinMatchBuffer *_mb;
size_t new_offset;