diff options
author | Mike Pall <mike> | 2013-04-26 13:47:41 +0200 |
---|---|---|
committer | Mike Pall <mike> | 2013-04-26 13:47:41 +0200 |
commit | 47fa9a8d8ff7123e160abfc18c88589bbb7f4b58 (patch) | |
tree | fbd673e26887d2cc2e63b43016d04fc8ae4e8767 /src/lj_record.c | |
parent | 5fd659f8599507c7d9c22e31afe1731c971fe98f (diff) | |
download | luajit-47fa9a8d8ff7123e160abfc18c88589bbb7f4b58.tar.gz luajit-47fa9a8d8ff7123e160abfc18c88589bbb7f4b58.tar.bz2 luajit-47fa9a8d8ff7123e160abfc18c88589bbb7f4b58.zip |
Change semantics of buffer ops to simplify CSE and DCE.
Diffstat (limited to 'src/lj_record.c')
-rw-r--r-- | src/lj_record.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lj_record.c b/src/lj_record.c index 1beaa75f..8dc102e9 100644 --- a/src/lj_record.c +++ b/src/lj_record.c | |||
@@ -1622,7 +1622,7 @@ static TRef rec_cat(jit_State *J, BCReg baseslot, BCReg topslot) | |||
1622 | do { | 1622 | do { |
1623 | tr = emitir(IRT(IR_BUFPUT, IRT_P32), tr, *trp++); | 1623 | tr = emitir(IRT(IR_BUFPUT, IRT_P32), tr, *trp++); |
1624 | } while (trp <= top); | 1624 | } while (trp <= top); |
1625 | tr = emitir(IRT(IR_BUFSTR, IRT_STR), hdr, tr); | 1625 | tr = emitir(IRT(IR_BUFSTR, IRT_STR), tr, hdr); |
1626 | J->maxslot = (BCReg)(xbase - J->base); | 1626 | J->maxslot = (BCReg)(xbase - J->base); |
1627 | if (xbase == base) return tr; | 1627 | if (xbase == base) return tr; |
1628 | } | 1628 | } |