Skip to content

Commit

Permalink
discover type of getrusage in spesh
Browse files Browse the repository at this point in the history
this allows devirtualization of atpos_i accesses
to getrusage's result. Probably barely worth
anything cpu-time wise.
  • Loading branch information
timo committed Mar 26, 2018
1 parent e7fee68 commit 621ca3c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/spesh/facts.c
Original file line number Diff line number Diff line change
Expand Up @@ -625,6 +625,11 @@ 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_getrusage:
create_facts_with_type(tc, g,
ins->operands[0].reg.orig, ins->operands[0].reg.i,
tc->instance->boot_types.BOOTIntArray);
break;
case MVM_OP_cas_o:
case MVM_OP_atomicload_o: {
MVMSpeshOperand result = ins->operands[0];
Expand Down

0 comments on commit 621ca3c

Please sign in to comment.