diff options
author | Mike Pall <mike> | 2012-07-09 16:22:08 +0200 |
---|---|---|
committer | Mike Pall <mike> | 2012-07-09 16:22:08 +0200 |
commit | 79ecb231ce8079e8801f15307cf485efe7ee1255 (patch) | |
tree | ff4066983e69f92b0758921b755f5e8d768c7fee /src/lj_asm.c | |
parent | f20ff8a30dbec50bc20b47702c4c61c08f67bd5b (diff) | |
download | luajit2-79ecb231ce8079e8801f15307cf485efe7ee1255.tar.gz |
Don't allocate constants for sunk stores.
Diffstat (limited to 'src/lj_asm.c')
-rw-r--r-- | src/lj_asm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lj_asm.c b/src/lj_asm.c index 6ea5bc93..ce2a70d7 100644 --- a/src/lj_asm.c +++ b/src/lj_asm.c @@ -799,7 +799,7 @@ static int asm_sunk_store(ASMState *as, IRIns *ira, IRIns *irs) static void asm_snap_alloc1(ASMState *as, IRRef ref) { IRIns *ir = IR(ref); - if (!(ra_used(ir) || ir->r == RID_SUNK)) { + if (!irref_isk(ref) && (!(ra_used(ir) || ir->r == RID_SUNK))) { if (ir->r == RID_SINK) { ir->r = RID_SUNK; #if LJ_HASFFI |