Home | History | Annotate | Download | only in src

Lines Matching refs:instr

34 bool HDeadCodeEliminationPhase::MarkLive(HValue* ref, HValue* instr) {
35 if (instr->CheckFlag(HValue::kIsLive)) return false;
36 instr->SetFlag(HValue::kIsLive);
47 instr->PrintTo(&stream);
62 HInstruction* instr = it.Current();
63 if (instr->CannotBeEliminated() && MarkLive(NULL, instr)) {
64 worklist.Add(instr, zone());
77 HValue* instr = worklist.RemoveLast();
78 for (int i = 0; i < instr->OperandCount(); ++i) {
79 if (MarkLive(instr, instr->OperandAt(i))) {
80 worklist.Add(instr->OperandAt(i), zone());
94 HInstruction* instr = it.Current();
95 if (!instr->CheckFlag(HValue::kIsLive)) {
99 if (!instr->IsConstant()) instr->DeleteAndReplaceWith(NULL);
102 instr->ClearFlag(HValue::kIsLive);