Home | History | Annotate | Download | only in Scalar

Lines Matching refs:Neg

189   // If this is a not or neg instruction, do not count it for rank.  This
212 static Instruction *LowerNegateToMultiply(Instruction *Neg,
214 Constant *Cst = Constant::getAllOnesValue(Neg->getType());
216 Instruction *Res = BinaryOperator::CreateMul(Neg->getOperand(1), Cst, "",Neg);
217 ValueRankMap.erase(Neg);
218 Res->takeName(Neg);
219 Neg->replaceAllUsesWith(Res);
220 Res->setDebugLoc(Neg->getDebugLoc());
221 Neg->eraseFromParent();
421 // We must move the add instruction here, because the neg instructions do
423 // assured that the neg instructions we just inserted dominate the
427 I->setName(I->getName()+".neg");
463 // Insert a 'neg' instruction that subtracts the value from zero to get the
465 return BinaryOperator::CreateNeg(V, V->getName() + ".neg", BI);
496 // Convert a subtract into an add and a neg instruction. This allows sub
620 V = BinaryOperator::CreateNeg(V, "neg", InsertPt);