diff options
author | Mike Pall <mike> | 2010-02-23 03:08:49 +0100 |
---|---|---|
committer | Mike Pall <mike> | 2010-02-23 03:08:49 +0100 |
commit | c1362dcac98bb73ff308e3453279d52e988a555b (patch) | |
tree | 98891212ccb4d8b7f6dc9559fa6c2fb43964758b /src/lj_asm.c | |
parent | f751cd1d6ff2ff1caab338cd2294f69cab34ae04 (diff) | |
download | luajit-c1362dcac98bb73ff308e3453279d52e988a555b.tar.gz luajit-c1362dcac98bb73ff308e3453279d52e988a555b.tar.bz2 luajit-c1362dcac98bb73ff308e3453279d52e988a555b.zip |
Don't eliminate SLOAD restores across RETF.
Move restore-elimination logic into snapshot_slots().
Diffstat (limited to 'src/lj_asm.c')
-rw-r--r-- | src/lj_asm.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/lj_asm.c b/src/lj_asm.c index 1e934d7c..3813a5d7 100644 --- a/src/lj_asm.c +++ b/src/lj_asm.c | |||
@@ -2581,9 +2581,7 @@ static void asm_stack_restore(ASMState *as, SnapShot *snap) | |||
2581 | int32_t ofs = 8*((int32_t)s-1); | 2581 | int32_t ofs = 8*((int32_t)s-1); |
2582 | IRRef ref = snap_ref(sn); | 2582 | IRRef ref = snap_ref(sn); |
2583 | IRIns *ir = IR(ref); | 2583 | IRIns *ir = IR(ref); |
2584 | /* No need to restore readonly slots and unmodified non-parent slots. */ | 2584 | if ((sn & SNAP_NORESTORE)) |
2585 | if (ir->o == IR_SLOAD && ir->op1 == s && | ||
2586 | (ir->op2 & (IRSLOAD_READONLY|IRSLOAD_PARENT)) != IRSLOAD_PARENT) | ||
2587 | continue; | 2585 | continue; |
2588 | if (irt_isnum(ir->t)) { | 2586 | if (irt_isnum(ir->t)) { |
2589 | Reg src = ra_alloc1(as, ref, RSET_FPR); | 2587 | Reg src = ra_alloc1(as, ref, RSET_FPR); |