Lines Matching defs:negate
148 // negate it even if it has other uses, without increasing instruction count.
158 // And since we are trying to negate instruction I, that tells us about the
191 // While we could negate exact arithmetic shift:
302 Value *NegOp = negate(I->getOperand(0), IsNSW, Depth + 1);
312 // Don't negate indvars to avoid infinite loops.
316 negate(std::get<0>(I), IsNSW, Depth + 1))) // Early return.
351 Value *NegOp1 = negate(I->getOperand(1), IsNSW, Depth + 1);
354 Value *NegOp2 = negate(I->getOperand(2), IsNSW, Depth + 1);
364 Value *NegOp0 = negate(I->getOperand(0), IsNSW, Depth + 1);
367 Value *NegOp1 = negate(I->getOperand(1), IsNSW, Depth + 1);
376 Value *NegVector = negate(EEI->getVectorOperand(), IsNSW, Depth + 1);
386 Value *NegVector = negate(IEI->getOperand(0), IsNSW, Depth + 1);
389 Value *NegNewElt = negate(IEI->getOperand(1), IsNSW, Depth + 1);
397 Value *NegOp = negate(I->getOperand(0), /* IsNSW */ false, Depth + 1);
405 if (Value *NegOp0 = negate(I->getOperand(0), IsNSW, Depth + 1))
433 if (Value *NegOp = negate(Op, /* IsNSW */ false, Depth + 1)) {
476 if (Value *NegOp1 = negate(Ops[1], /* IsNSW */ false, Depth + 1)) {
479 } else if (Value *NegOp0 = negate(Ops[0], /* IsNSW */ false, Depth + 1)) {
483 // Can't negate either of them.
495 [[nodiscard]] Value *Negator::negate(Value *V, bool IsNSW, unsigned Depth) {
508 // Did we already try to negate this value?
534 Value *Negated = negate(Root, IsNSW, /*Depth=*/0);