Home | History | Annotate | Download | only in optimizing

Lines Matching refs:binop

41   bool TryMoveNegOnInputsAfterBinop(HBinaryOperation* binop);
108 bool InstructionSimplifierVisitor::TryMoveNegOnInputsAfterBinop(HBinaryOperation* binop) {
109 DCHECK(binop->IsAdd() || binop->IsSub());
110 DCHECK(binop->GetLeft()->IsNeg() && binop->GetRight()->IsNeg());
111 HNeg* left_neg = binop->GetLeft()->AsNeg();
112 HNeg* right_neg = binop->GetRight()->AsNeg();
124 binop->ReplaceInput(left_neg->GetInput(), 0);
125 binop->ReplaceInput(right_neg->GetInput(), 1);
128 HNeg* neg = new (GetGraph()->GetArena()) HNeg(binop->GetType(), binop);
129 binop->GetBlock()->InsertInstructionBefore(neg, binop->GetNext());
130 binop->ReplaceWithExceptInReplacementAtIndex(neg, 0);