Home
last modified time | relevance | path

Searched refs:hasAllowReciprocal (Results 1 – 13 of 13) sorted by relevance

/llvm-project-15.0.7/llvm/unittests/IR/
H A DIRBuilderTest.cpp549 EXPECT_FALSE(FAdd->hasAllowReciprocal()); in TEST_F()
559 EXPECT_TRUE(FAdd->hasAllowReciprocal()); in TEST_F()
588 EXPECT_TRUE(FDiv->hasAllowReciprocal()); in TEST_F()
596 EXPECT_FALSE(FDiv->hasAllowReciprocal()); in TEST_F()
608 EXPECT_TRUE(FDiv->hasAllowReciprocal()); in TEST_F()
615 EXPECT_FALSE(FCmp->hasAllowReciprocal()); in TEST_F()
626 EXPECT_TRUE(FCmp->hasAllowReciprocal()); in TEST_F()
707 EXPECT_FALSE(FDiv->hasAllowReciprocal()); in TEST_F()
H A DInstructionsTest.cpp1488 EXPECT_FALSE(FNeg->hasAllowReciprocal()); in TEST()
/llvm-project-15.0.7/llvm/lib/IR/
H A DInstruction.cpp274 bool Instruction::hasAllowReciprocal() const { in hasAllowReciprocal() function in Instruction
276 return cast<FPMathOperator>(this)->hasAllowReciprocal(); in hasAllowReciprocal()
/llvm-project-15.0.7/llvm/include/llvm/IR/
H A DOperator.h269 bool hasAllowReciprocal() const { in hasAllowReciprocal() function
H A DInstruction.h456 bool hasAllowReciprocal() const;
/llvm-project-15.0.7/llvm/lib/Transforms/InstCombine/
H A DInstCombineMulDivRem.cpp1235 if (!(C->hasExactInverseFP() || (I.hasAllowReciprocal() && C->isNormalFP()))) in foldFDivConstantDivisor()
1263 if (!I.hasAllowReassoc() || !I.hasAllowReciprocal()) in foldFDivConstantDividend()
1292 !I.hasAllowReciprocal()) in foldFDivPowDivisor()
1365 if (I.hasAllowReassoc() && I.hasAllowReciprocal()) { in visitFDiv()
/llvm-project-15.0.7/llvm/lib/CodeGen/SelectionDAG/
H A DSelectionDAGDumper.cpp586 if (getFlags().hasAllowReciprocal()) in print_details()
H A DInstrEmitter.cpp1015 if (Flags.hasAllowReciprocal()) in EmitMachineNode()
H A DDAGCombiner.cpp15154 if (LegalDAG || (!UnsafeMath && !Flags.hasAllowReciprocal())) in combineRepeatedFPDivisors()
15191 if (UnsafeMath || U->getFlags().hasAllowReciprocal()) in combineRepeatedFPDivisors()
15248 if (Options.UnsafeFPMath || Flags.hasAllowReciprocal()) { in visitFDIV()
/llvm-project-15.0.7/llvm/include/llvm/CodeGen/
H A DSelectionDAGNodes.h404 setAllowReciprocal(FPMO.hasAllowReciprocal());
430 bool hasAllowReciprocal() const { return AllowReciprocal; }
/llvm-project-15.0.7/llvm/lib/Transforms/Scalar/
H A DLICM.cpp915 if (I.getOpcode() == Instruction::FDiv && I.hasAllowReciprocal() && in hoistRegion()
/llvm-project-15.0.7/llvm/lib/Target/DirectX/DXILWriter/
H A DDXILBitcodeWriter.cpp789 if (FPMO->hasAllowReciprocal()) in getOptimizationFlags()
/llvm-project-15.0.7/llvm/lib/Bitcode/Writer/
H A DBitcodeWriter.cpp1509 if (FPMO->hasAllowReciprocal()) in getOptimizationFlags()