Home
last modified time | relevance | path

Searched refs:isGuaranteedNotToBeUndefOrPoison (Results 1 – 23 of 23) sorted by relevance

/llvm-project-15.0.7/llvm/unittests/Analysis/
H A DValueTrackingTest.cpp1004 TEST_F(ValueTrackingTest, isGuaranteedNotToBeUndefOrPoison) { in TEST_F() argument
1011 EXPECT_EQ(isGuaranteedNotToBeUndefOrPoison(A), true); in TEST_F()
1012 EXPECT_EQ(isGuaranteedNotToBeUndefOrPoison(UndefValue::get(IntegerType::get(Context, 8))), false); in TEST_F()
1013 …EXPECT_EQ(isGuaranteedNotToBeUndefOrPoison(PoisonValue::get(IntegerType::get(Context, 8))), false); in TEST_F()
1025 EXPECT_TRUE(isGuaranteedNotToBeUndefOrPoison(V1)); in TEST_F()
1031 EXPECT_FALSE(isGuaranteedNotToBeUndefOrPoison(V2)); in TEST_F()
1037 EXPECT_FALSE(isGuaranteedNotToBeUndefOrPoison(V3)); in TEST_F()
1064 EXPECT_FALSE(isGuaranteedNotToBeUndefOrPoison(A, &AC, CxtI, &DT)); in TEST_F()
1065 EXPECT_FALSE(isGuaranteedNotToBeUndefOrPoison(A, &AC, CxtI2, &DT)); in TEST_F()
1066 EXPECT_TRUE(isGuaranteedNotToBeUndefOrPoison(A, &AC, CxtI3, &DT)); in TEST_F()
/llvm-project-15.0.7/llvm/lib/Transforms/Utils/
H A DCanonicalizeFreezeInLoops.cpp110 if (isGuaranteedNotToBeUndefOrPoison(ValueToFr, nullptr, UserI, &DT)) in InsertFreezeAndForgetFromSCEV()
177 if (!isGuaranteedNotToBeUndefOrPoison(StepI, nullptr, StepI, &DT)) { in run()
H A DLoopUnrollRuntime.cpp756 !isGuaranteedNotToBeUndefOrPoison(TripCount, AC, PreHeaderBR, DT)) { in UnrollRuntimeLoopRemainder()
H A DSimplifyCFG.cpp4591 if (!isGuaranteedNotToBeUndefOrPoison(ExtraCase, AC, BI, nullptr)) in SimplifyBranchOnICmpChain()
/llvm-project-15.0.7/llvm/lib/Transforms/Scalar/
H A DDivRemPairs.cpp363 if (!isGuaranteedNotToBeUndefOrPoison(X, nullptr, DivInst, &DT)) { in optimizeDivRem()
370 if (!isGuaranteedNotToBeUndefOrPoison(Y, nullptr, DivInst, &DT)) { in optimizeDivRem()
H A DSCCP.cpp651 if (!isGuaranteedNotToBeUndefOrPoison(CB, nullptr, CB)) in runIPSCCP()
H A DSimpleLoopUnswitch.cpp222 if (InsertFreeze && !isGuaranteedNotToBeUndefOrPoison(Inv, AC, I, &DT)) in buildPartialUnswitchConditionalBranch()
2236 if (!isGuaranteedNotToBeUndefOrPoison(Cond, &AC, BI, &DT)) in unswitchNontrivialInvariants()
2256 if (!isGuaranteedNotToBeUndefOrPoison(Cond, &AC, SI, &DT)) in unswitchNontrivialInvariants()
H A DJumpThreading.cpp718 return !isGuaranteedNotToBeUndefOrPoison(Pair.first); in computeValueKnownInPredecessorsImpl()
2906 if (!isGuaranteedNotToBeUndefOrPoison(Cond, nullptr, SI)) in tryToUnfoldSelectInCurrBB()
/llvm-project-15.0.7/llvm/lib/Analysis/
H A DLoopAccessAnalysis.cpp818 std::make_pair(Scev, !isGuaranteedNotToBeUndefOrPoison(Ptr))); in findForkedSCEVs()
838 std::make_pair(Scev, !isGuaranteedNotToBeUndefOrPoison(GEP))); in findForkedSCEVs()
894 std::make_pair(Scev, !isGuaranteedNotToBeUndefOrPoison(Ptr))); in findForkedSCEVs()
901 std::make_pair(Scev, !isGuaranteedNotToBeUndefOrPoison(Ptr))); in findForkedSCEVs()
H A DValueTracking.cpp482 isGuaranteedNotToBeUndefOrPoison(Op0, Q.AC, Q.CxtI, Q.DT, Depth + 1); in computeKnownBitsMul()
4995 if (isGuaranteedNotToBeUndefOrPoison(LHS, AC, CxtI, DT)) in computeOverflowForUnsignedSub()
5031 if (isGuaranteedNotToBeUndefOrPoison(LHS, AC, CxtI, DT)) in computeOverflowForSignedSub()
5242 if (isGuaranteedNotToBeUndefOrPoison(ValAssumedPoison)) in impliesPoison()
5268 static bool isGuaranteedNotToBeUndefOrPoison(const Value *V, in isGuaranteedNotToBeUndefOrPoison() function
5312 return isGuaranteedNotToBeUndefOrPoison(V, AC, CtxI, DT, Depth + 1, in isGuaranteedNotToBeUndefOrPoison()
5332 if (!isGuaranteedNotToBeUndefOrPoison(PN->getIncomingValue(i), AC, TI, in isGuaranteedNotToBeUndefOrPoison()
5399 bool llvm::isGuaranteedNotToBeUndefOrPoison(const Value *V, AssumptionCache *AC, in isGuaranteedNotToBeUndefOrPoison() function in llvm
5403 return ::isGuaranteedNotToBeUndefOrPoison(V, AC, CtxI, DT, Depth, false); in isGuaranteedNotToBeUndefOrPoison()
5409 return ::isGuaranteedNotToBeUndefOrPoison(V, AC, CtxI, DT, Depth, true); in isGuaranteedNotToBePoison()
H A DConstantFolding.cpp1081 return isGuaranteedNotToBeUndefOrPoison(Ops[0]) ? Ops[0] : nullptr; in ConstantFoldInstOperandsImpl()
H A DInstructionSimplify.cpp6256 if (llvm::isGuaranteedNotToBeUndefOrPoison(Op0, Q.AC, Q.CxtI, Q.DT)) in simplifyFreezeInst()
/llvm-project-15.0.7/llvm/include/llvm/Analysis/
H A DValueTracking.h687 bool isGuaranteedNotToBeUndefOrPoison(const Value *V,
/llvm-project-15.0.7/llvm/include/llvm/CodeGen/
H A DSelectionDAG.h1961 bool isGuaranteedNotToBeUndefOrPoison(SDValue Op, bool PoisonOnly = false,
1967 bool isGuaranteedNotToBeUndefOrPoison(SDValue Op, const APInt &DemandedElts,
1973 return isGuaranteedNotToBeUndefOrPoison(Op, /*PoisonOnly*/ true, Depth);
1980 return isGuaranteedNotToBeUndefOrPoison(Op, DemandedElts,
/llvm-project-15.0.7/llvm/lib/Transforms/InstCombine/
H A DInstructionCombining.cpp1182 if (isa<FreezeInst>(I) && isGuaranteedNotToBeUndefOrPoison(InVal)) in foldOpIntoPhi()
3782 if (isGuaranteedNotToBeUndefOrPoison(U.get())) in pushFreezeToPreventPoisonFromPropagating()
3831 bool StartNeedsFreeze = !isGuaranteedNotToBeUndefOrPoison(StartV); in foldFreezeIntoRecurrence()
3848 if (V == PN || isGuaranteedNotToBeUndefOrPoison(V)) in foldFreezeIntoRecurrence()
H A DInstCombineAndOrXor.cpp570 if (IsLogical && !isGuaranteedNotToBeUndefOrPoison(D)) in foldLogOpOfMaskedICmps()
583 if (IsLogical && !isGuaranteedNotToBeUndefOrPoison(D)) in foldLogOpOfMaskedICmps()
592 if (IsLogical && !isGuaranteedNotToBeUndefOrPoison(D)) in foldLogOpOfMaskedICmps()
1106 !isGuaranteedNotToBeUndefOrPoison(C) || isa<Constant>(X)) in foldAndOrOfICmpsWithConstEq()
H A DInstCombineSelect.cpp1181 isGuaranteedNotToBeUndefOrPoison(CmpRHS, SQ.AC, &Sel, &DT)) { in foldSelectValueEquivalence()
1203 isGuaranteedNotToBeUndefOrPoison(CmpLHS, SQ.AC, &Sel, &DT)) in foldSelectValueEquivalence()
H A DInstCombineAddSub.cpp2327 !isGuaranteedNotToBeUndefOrPoison(OldSel->getCondition())) in visitFNeg()
/llvm-project-15.0.7/llvm/lib/Transforms/Instrumentation/
H A DControlHeightReduction.cpp1940 !isGuaranteedNotToBeUndefOrPoison(Cond)) in addToMergedCondition()
/llvm-project-15.0.7/llvm/lib/CodeGen/SelectionDAG/
H A DSelectionDAG.cpp3171 SelfMultiply &= isGuaranteedNotToBeUndefOrPoison( in computeKnownBits()
4516 bool SelectionDAG::isGuaranteedNotToBeUndefOrPoison(SDValue Op, bool PoisonOnly, in isGuaranteedNotToBeUndefOrPoison() function in SelectionDAG
4530 return isGuaranteedNotToBeUndefOrPoison(Op, DemandedElts, PoisonOnly, Depth); in isGuaranteedNotToBeUndefOrPoison()
4533 bool SelectionDAG::isGuaranteedNotToBeUndefOrPoison(SDValue Op, in isGuaranteedNotToBeUndefOrPoison() function in SelectionDAG
4559 if (!isGuaranteedNotToBeUndefOrPoison(Op.getOperand(i), PoisonOnly, in isGuaranteedNotToBeUndefOrPoison()
5169 if (isGuaranteedNotToBeUndefOrPoison(Operand)) in getNode()
H A DDAGCombiner.cpp13866 if (DAG.isGuaranteedNotToBeUndefOrPoison(N0, /*PoisonOnly*/ false)) in visitFREEZE()
/llvm-project-15.0.7/llvm/lib/Transforms/IPO/
H A DAttributorAttributes.cpp9198 isGuaranteedNotToBeUndefOrPoison(&V)) in initialize()
9215 State.setKnown(isGuaranteedNotToBeUndefOrPoison(UseV, AC, I, DT)); in followUseInMBEC()
/llvm-project-15.0.7/llvm/lib/CodeGen/
H A DCodeGenPrepare.cpp2082 if (!isGuaranteedNotToBeUndefOrPoison(Op)) in despeculateCountZeros()