Home
last modified time | relevance | path

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

/freebsd/contrib/llvm-project/llvm/include/llvm/SandboxIR/
H A DOperator.h62 bool hasAllowReassoc() const { in hasAllowReassoc() function
63 return cast<llvm::FPMathOperator>(Val)->hasAllowReassoc(); in hasAllowReassoc()
H A DInstruction.h246 bool hasAllowReassoc() const { in hasAllowReassoc() function
247 return cast<llvm::Instruction>(Val)->hasAllowReassoc(); in hasAllowReassoc()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineMulDivRem.cpp658 if (Opcode == Instruction::FDiv && I.hasAllowReassoc() && I.hasNoNaNs()) { in foldPowiReassoc()
738 if (!FSqrt->hasAllowReassoc() || !FSqrt->hasNoNaNs() || in isFSqrtDivToFMulLegal()
746 if (!X->hasAllowReassoc() || !X->hasAllowReciprocal() || !X->hasNoInfs()) in isFSqrtDivToFMulLegal()
762 return (I->getParent() != BBr1 || !I->hasAllowReassoc()); in isFSqrtDivToFMulLegal()
772 return (I->getParent() == BBr2 && I->hasAllowReassoc()); in isFSqrtDivToFMulLegal()
1028 if (I.hasAllowReassoc()) in visitFMul()
1948 if (!I.hasAllowReassoc() || !I.hasAllowReciprocal()) in foldFDivConstantDividend()
1975 if (!II || !II->hasOneUse() || !I.hasAllowReassoc() || in foldFDivPowDivisor()
2020 if (!I.hasAllowReassoc() || !I.hasAllowReciprocal()) in foldFDivSqrtDivisor()
2025 !II->hasAllowReassoc() || !II->hasAllowReciprocal()) in foldFDivSqrtDivisor()
[all …]
H A DInstCombineAddSub.cpp428 assert(I->hasAllowReassoc() && I->hasNoSignedZeros() && in simplify()
1070 assert(I.hasAllowReassoc() && I.hasNoSignedZeros() && "Assumption mismatch"); in foldSquareSumFP()
1947 assert(I.hasAllowReassoc() && I.hasNoSignedZeros() && in factorizeFAddFSub()
2039 if (I.hasAllowReassoc() && I.hasNoSignedZeros()) { in visitFAdd()
3166 if (I.hasAllowReassoc() && I.hasNoSignedZeros()) { in visitFSub()
H A DInstCombineCalls.cpp3842 II->hasAllowReassoc(); in visitCallInst()
/freebsd/contrib/llvm-project/llvm/include/llvm/Analysis/
H A DIVDescriptors.h435 !InductionBinOp->hasAllowReassoc()) in getExactFPMathInst()
/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DInstruction.cpp629 bool Instruction::hasAllowReassoc() const { in hasAllowReassoc() function in Instruction
631 return cast<FPMathOperator>(this)->hasAllowReassoc(); in hasAllowReassoc()
1271 return cast<FPMathOperator>(this)->hasAllowReassoc() && in isAssociative()
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DIVDescriptors.cpp913 I->hasAllowReassoc() ? nullptr : I); in isRecurrenceInstr()
917 I->hasAllowReassoc() ? nullptr : I); in isRecurrenceInstr()
969 I->hasAllowReassoc() ? nullptr : I); in isRecurrenceInstr()
H A DInstructionSimplify.cpp6334 if (Call->hasAllowReassoc() && in simplifyUnaryIntrinsic()
6340 if (Call->hasAllowReassoc() && in simplifyUnaryIntrinsic()
6346 if (Call->hasAllowReassoc() && in simplifyUnaryIntrinsic()
6352 if (Call->hasAllowReassoc() && in simplifyUnaryIntrinsic()
6358 if (Call->hasAllowReassoc() && in simplifyUnaryIntrinsic()
6367 if (Call->hasAllowReassoc() && in simplifyUnaryIntrinsic()
H A DConstantFolding.cpp1455 if (FP->hasNoSignedZeros() || FP->hasAllowReassoc() || in ConstantFoldFPInstOperands()
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/
H A DOperator.h297 bool hasAllowReassoc() const {
H A DInstruction.h652 LLVM_ABI bool hasAllowReassoc() const LLVM_READONLY;
H A DPatternMatch.h78 return I && I->hasAllowReassoc() && SubPattern.match(I); in match()
/freebsd/contrib/llvm-project/llvm/lib/FuzzMutate/
H A DIRMutator.cpp315 [&Inst] { Inst.setHasAllowReassoc(!Inst.hasAllowReassoc()); }); in mutate()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DSimplifyLibCalls.cpp2256 if (ExpoF->isNegative() && (!Pow->hasApproxFunc() && !Pow->hasAllowReassoc())) in replacePowWithSqrt()
2663 if (!CI->hasAllowReassoc()) in mergeSqrtToExp()
2668 if (!Arg || !Arg->hasAllowReassoc() || !Arg->hasOneUse()) in mergeSqrtToExp()
/freebsd/contrib/llvm-project/llvm/lib/SandboxIR/
H A DInstruction.cpp212 .emplaceIfTracking<GenericSetter<&Instruction::hasAllowReassoc, in setHasAllowReassoc()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DReassociate.cpp158 return I->hasAllowReassoc() && I->hasNoSignedZeros(); in hasFPAssociativeFlags()
H A DLICM.cpp2727 if (I->getOpcode() == FPOpcode && I->hasAllowReassoc() && in isReassociableOp()
/freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/
H A DSelectionDAGNodes.h442 setAllowReassociation(FPMO.hasAllowReassoc());
/freebsd/contrib/llvm-project/llvm/lib/Target/DirectX/DXILWriter/
H A DDXILBitcodeWriter.cpp759 if (FPMO->hasAllowReassoc() || FPMO->hasAllowContract()) in getOptimizationFlags()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/
H A DIRTranslator.cpp2512 if (!CI.hasAllowReassoc()) { in translateKnownIntrinsic()
/freebsd/contrib/llvm-project/llvm/lib/Bitcode/Writer/
H A DBitcodeWriter.cpp1743 if (FPMO->hasAllowReassoc()) in getOptimizationFlags()