Lines Matching defs:FDiv
292 Value *RsqOp, const Instruction *FDiv,
1074 bool AMDGPUCodeGenPrepareImpl::visitFDiv(BinaryOperator &FDiv) {
1078 Type *Ty = FDiv.getType()->getScalarType();
1085 const FPMathOperator *FPOp = cast<const FPMathOperator>(&FDiv);
1091 Value *Num = FDiv.getOperand(0);
1092 Value *Den = FDiv.getOperand(1);
1121 IRBuilder<> Builder(FDiv.getParent(), std::next(FDiv.getIterator()));
1123 Builder.SetCurrentDebugLocation(FDiv.getDebugLoc());
1150 NewEltInst->copyMetadata(FDiv);
1156 Value *NewVal = insertValues(Builder, FDiv.getType(), ResultVals);
1159 FDiv.replaceAllUsesWith(NewVal);
1160 NewVal->takeName(&FDiv);
1161 RecursivelyDeleteTriviallyDeadInstructions(&FDiv, TLInfo);
2227 auto *FDiv =
2229 if (FDiv && FDiv->getOpcode() == Instruction::FDiv &&
2230 FDiv->getFPAccuracy() >= 1.0f &&
2231 canOptimizeWithRsq(FPOp, FDiv->getFastMathFlags(), SqrtFMF) &&
2233 isOneOrNegOne(FDiv->getOperand(0)))