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