Lines Matching defs:FDiv
304 Value *RsqOp, const Instruction *FDiv,
1080 bool AMDGPUCodeGenPrepareImpl::visitFDiv(BinaryOperator &FDiv) {
1084 Type *Ty = FDiv.getType()->getScalarType();
1091 const FPMathOperator *FPOp = cast<const FPMathOperator>(&FDiv);
1097 Value *Num = FDiv.getOperand(0);
1098 Value *Den = FDiv.getOperand(1);
1127 IRBuilder<> Builder(FDiv.getParent(), std::next(FDiv.getIterator()));
1129 Builder.SetCurrentDebugLocation(FDiv.getDebugLoc());
1156 NewEltInst->copyMetadata(FDiv);
1162 Value *NewVal = insertValues(Builder, FDiv.getType(), ResultVals);
1165 FDiv.replaceAllUsesWith(NewVal);
1166 NewVal->takeName(&FDiv);
1167 RecursivelyDeleteTriviallyDeadInstructions(&FDiv, TLI);
2246 auto *FDiv =
2248 if (FDiv && FDiv->getOpcode() == Instruction::FDiv &&
2249 FDiv->getFPAccuracy() >= 1.0f &&
2250 canOptimizeWithRsq(FPOp, FDiv->getFastMathFlags(), SqrtFMF) &&
2252 isOneOrNegOne(FDiv->getOperand(0)))