Skip to content

Commit

Permalink
We know cas_o and atomicload_o are decont-y.
Browse files Browse the repository at this point in the history
So flag that up in facts, thus allowing a p6decontrv to go away, which
further cheapens the cas function.
  • Loading branch information
jnthn committed Aug 18, 2017
1 parent ddd7449 commit 075a6a5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/spesh/facts.c
Expand Up @@ -600,6 +600,12 @@ static void add_bb_facts(MVMThreadContext *tc, MVMSpeshGraph *g, MVMSpeshBB *bb,
ins->operands[0].reg.orig, ins->operands[0].reg.i,
ins->operands[4].reg.orig, ins->operands[4].reg.i);
break;
case MVM_OP_cas_o:
case MVM_OP_atomicload_o: {
MVMSpeshOperand result = ins->operands[0];
g->facts[result.reg.orig][result.reg.i].flags |= MVM_SPESH_FACT_DECONTED;
break;
}
default:
if (ins->info->opcode == (MVMuint16)-1)
discover_extop(tc, g, ins);
Expand Down

0 comments on commit 075a6a5

Please sign in to comment.