Home | History | Annotate | Download | only in Scalar

Lines Matching refs:Neg

226   // If this is a not or neg instruction, do not count it for rank.  This
240 static BinaryOperator *LowerNegateToMultiply(Instruction *Neg) {
241 Constant *Cst = Constant::getAllOnesValue(Neg->getType());
244 BinaryOperator::CreateMul(Neg->getOperand(1), Cst, "",Neg);
245 Neg->setOperand(1, Constant::getNullValue(Neg->getType())); // Drop use of op.
246 Res->takeName(Neg);
247 Neg->replaceAllUsesWith(Res);
248 Res->setDebugLoc(Neg->getDebugLoc());
775 // We must move the add instruction here, because the neg instructions do
777 // assured that the neg instructions we just inserted dominate the
781 I->setName(I->getName()+".neg");
817 // Insert a 'neg' instruction that subtracts the value from zero to get the
819 return BinaryOperator::CreateNeg(V, V->getName() + ".neg", BI);
849 // Convert a subtract into an add and a neg instruction. This allows sub
971 V = BinaryOperator::CreateNeg(V, "neg", InsertPt);