Skip to content

Commit 704280f

Browse files
author
Mike Pall
committed
FFI: Prevent DSE across ffi.string().
1 parent dfa173b commit 704280f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/lj_opt_mem.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -793,6 +793,7 @@ TRef LJ_FASTCALL lj_opt_dse_xstore(jit_State *J)
793793
IRRef ref = *refp;
794794
if (J->chain[IR_CALLXS] > lim) lim = J->chain[IR_CALLXS];
795795
if (J->chain[IR_XBAR] > lim) lim = J->chain[IR_XBAR];
796+
if (J->chain[IR_XSNEW] > lim) lim = J->chain[IR_XSNEW];
796797
while (ref > lim) { /* Search for redundant or conflicting stores. */
797798
IRIns *store = IR(ref);
798799
switch (aa_xref(J, xr, fins, store)) {

0 commit comments

Comments
 (0)