diff options
-rw-r--r-- | src/lj_opt_mem.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lj_opt_mem.c b/src/lj_opt_mem.c index bf77666b..98974ce3 100644 --- a/src/lj_opt_mem.c +++ b/src/lj_opt_mem.c | |||
@@ -347,7 +347,7 @@ TRef LJ_FASTCALL lj_opt_dse_ahstore(jit_State *J) | |||
347 | IRIns *ir; | 347 | IRIns *ir; |
348 | /* Check for any intervening guards (includes conflicting loads). */ | 348 | /* Check for any intervening guards (includes conflicting loads). */ |
349 | for (ir = IR(J->cur.nins-1); ir > store; ir--) | 349 | for (ir = IR(J->cur.nins-1); ir > store; ir--) |
350 | if (irt_isguard(ir->t)) | 350 | if (irt_isguard(ir->t) || ir->o == IR_CALLL) |
351 | goto doemit; /* No elimination possible. */ | 351 | goto doemit; /* No elimination possible. */ |
352 | /* Remove redundant store from chain and replace with NOP. */ | 352 | /* Remove redundant store from chain and replace with NOP. */ |
353 | *refp = store->prev; | 353 | *refp = store->prev; |