Lines Matching defs:negate
152 // negate it even if it has other uses, without increasing instruction count.
162 // And since we are trying to negate instruction I, that tells us about the
195 // While we could negate exact arithmetic shift:
306 Value *NegOp = negate(I->getOperand(0), IsNSW, Depth + 1);
317 negate(std::get<0>(I), IsNSW, Depth + 1))) // Early return.
352 Value *NegOp1 = negate(I->getOperand(1), IsNSW, Depth + 1);
355 Value *NegOp2 = negate(I->getOperand(2), IsNSW, Depth + 1);
365 Value *NegOp0 = negate(I->getOperand(0), IsNSW, Depth + 1);
368 Value *NegOp1 = negate(I->getOperand(1), IsNSW, Depth + 1);
377 Value *NegVector = negate(EEI->getVectorOperand(), IsNSW, Depth + 1);
387 Value *NegVector = negate(IEI->getOperand(0), IsNSW, Depth + 1);
390 Value *NegNewElt = negate(IEI->getOperand(1), IsNSW, Depth + 1);
398 Value *NegOp = negate(I->getOperand(0), /* IsNSW */ false, Depth + 1);
406 if (Value *NegOp0 = negate(I->getOperand(0), IsNSW, Depth + 1))
434 if (Value *NegOp = negate(Op, /* IsNSW */ false, Depth + 1)) {
477 if (Value *NegOp1 = negate(Ops[1], /* IsNSW */ false, Depth + 1)) {
480 } else if (Value *NegOp0 = negate(Ops[0], /* IsNSW */ false, Depth + 1)) {
484 // Can't negate either of them.
496 [[nodiscard]] Value *Negator::negate(Value *V, bool IsNSW, unsigned Depth) {
509 // Did we already try to negate this value?
535 Value *Negated = negate(Root, IsNSW, /*Depth=*/0);