Home
last modified time | relevance | path

Searched refs:hasAllowReassoc (Results 1 – 17 of 17) sorted by relevance

/llvm-project-15.0.7/llvm/lib/IR/
H A DInstruction.cpp254 bool Instruction::hasAllowReassoc() const { in hasAllowReassoc() function in Instruction
256 return cast<FPMathOperator>(this)->hasAllowReassoc(); in hasAllowReassoc()
763 return cast<FPMathOperator>(this)->hasAllowReassoc() && in isAssociative()
/llvm-project-15.0.7/llvm/unittests/IR/
H A DIRBuilderTest.cpp522 EXPECT_FALSE(IFMF->hasAllowReassoc()); in TEST_F()
551 EXPECT_FALSE(FAdd->hasAllowReassoc()); in TEST_F()
561 EXPECT_TRUE(FAdd->hasAllowReassoc()); in TEST_F()
655 EXPECT_FALSE(FAdd->hasAllowReassoc()); in TEST_F()
665 EXPECT_TRUE(FAdd->hasAllowReassoc()); in TEST_F()
H A DInstructionsTest.cpp1490 EXPECT_FALSE(FNeg->hasAllowReassoc()); in TEST()
/llvm-project-15.0.7/llvm/lib/Transforms/InstCombine/
H A DInstCombineMulDivRem.cpp501 if (I.hasAllowReassoc()) { in visitFMul()
1263 if (!I.hasAllowReassoc() || !I.hasAllowReciprocal()) in foldFDivConstantDividend()
1291 if (!II || !II->hasOneUse() || !I.hasAllowReassoc() || in foldFDivPowDivisor()
1365 if (I.hasAllowReassoc() && I.hasAllowReciprocal()) { in visitFDiv()
1389 if (I.hasAllowReassoc() && Op0->hasOneUse() && Op1->hasOneUse()) { in visitFDiv()
1418 if (I.hasNoNaNs() && I.hasAllowReassoc() && in visitFDiv()
H A DInstCombineAddSub.cpp428 assert(I->hasAllowReassoc() && I->hasNoSignedZeros() && in simplify()
1490 assert(I.hasAllowReassoc() && I.hasNoSignedZeros() && in factorizeFAddFSub()
1635 if (I.hasAllowReassoc() && I.hasNoSignedZeros()) { in visitFAdd()
2447 if (I.hasAllowReassoc() && I.hasNoSignedZeros()) { in visitFSub()
H A DInstCombineCalls.cpp2653 II->hasAllowReassoc(); in visitCallInst()
/llvm-project-15.0.7/llvm/include/llvm/Analysis/
H A DIVDescriptors.h356 !InductionBinOp->hasAllowReassoc()) in getExactFPMathInst()
/llvm-project-15.0.7/llvm/lib/Analysis/
H A DIVDescriptors.cpp784 I->hasAllowReassoc() ? nullptr : I); in isRecurrenceInstr()
788 I->hasAllowReassoc() ? nullptr : I); in isRecurrenceInstr()
806 I->hasAllowReassoc() ? nullptr : I); in isRecurrenceInstr()
H A DInstructionSimplify.cpp5668 if (Q.CxtI->hasAllowReassoc() && in simplifyUnaryIntrinsic()
5674 if (Q.CxtI->hasAllowReassoc() && in simplifyUnaryIntrinsic()
5680 if (Q.CxtI->hasAllowReassoc() && in simplifyUnaryIntrinsic()
5686 if (Q.CxtI->hasAllowReassoc() && in simplifyUnaryIntrinsic()
5694 if (Q.CxtI->hasAllowReassoc() && in simplifyUnaryIntrinsic()
/llvm-project-15.0.7/llvm/include/llvm/IR/
H A DOperator.h249 bool hasAllowReassoc() const { in hasAllowReassoc() function
H A DInstruction.h444 bool hasAllowReassoc() const;
/llvm-project-15.0.7/llvm/lib/Transforms/Scalar/
H A DReassociate.cpp151 return I->hasAllowReassoc() && I->hasNoSignedZeros(); in hasFPAssociativeFlags()
/llvm-project-15.0.7/llvm/include/llvm/CodeGen/
H A DSelectionDAGNodes.h407 setAllowReassociation(FPMO.hasAllowReassoc());
/llvm-project-15.0.7/llvm/lib/Target/DirectX/DXILWriter/
H A DDXILBitcodeWriter.cpp781 if (FPMO->hasAllowReassoc()) in getOptimizationFlags()
/llvm-project-15.0.7/llvm/lib/CodeGen/GlobalISel/
H A DIRTranslator.cpp2255 if (!CI.hasAllowReassoc()) { in translateKnownIntrinsic()
/llvm-project-15.0.7/llvm/lib/Transforms/Utils/
H A DSimplifyLibCalls.cpp1935 if (ExpoF->isNegative() && (!Pow->hasApproxFunc() && !Pow->hasAllowReassoc())) in replacePowWithSqrt()
/llvm-project-15.0.7/llvm/lib/Bitcode/Writer/
H A DBitcodeWriter.cpp1501 if (FPMO->hasAllowReassoc()) in getOptimizationFlags()