Lines Matching defs:Neg
287 static BinaryOperator *LowerNegateToMultiply(Instruction *Neg) {
288 assert((isa<UnaryOperator>(Neg) || isa<BinaryOperator>(Neg)) &&
291 unsigned OpNo = isa<BinaryOperator>(Neg) ? 1 : 0;
292 Type *Ty = Neg->getType();
297 CreateMul(Neg->getOperand(OpNo), NegOne, "", Neg->getIterator(), Neg);
298 Neg->setOperand(OpNo, Constant::getNullValue(Ty)); // Drop use of op.
299 Res->takeName(Neg);
300 Neg->replaceAllUsesWith(Res);
301 Res->setDebugLoc(Neg->getDebugLoc());
501 Instruction *Neg;
504 match(Op, m_Instruction(Neg))) {
507 Instruction *Mul = LowerNegateToMultiply(Neg);
514 ToRedo.insert(Neg);