summaryrefslogtreecommitdiff
path: root/src/lj_asm.c
diff options
context:
space:
mode:
authorMike Pall <mike>2012-07-09 16:22:08 +0200
committerMike Pall <mike>2012-07-09 16:22:08 +0200
commit79ecb231ce8079e8801f15307cf485efe7ee1255 (patch)
treeff4066983e69f92b0758921b755f5e8d768c7fee /src/lj_asm.c
parentf20ff8a30dbec50bc20b47702c4c61c08f67bd5b (diff)
downloadluajit2-79ecb231ce8079e8801f15307cf485efe7ee1255.tar.gz
Don't allocate constants for sunk stores.
Diffstat (limited to 'src/lj_asm.c')
-rw-r--r--src/lj_asm.c2
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