/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/ |
H A D | MergedLoadStoreMotion.cpp | 310 BasicBlock *Pred1 = *SI; in mergeStores() local 312 if (Pred0 == Pred1) in mergeStores() 318 auto InstsNoDbg = Pred1->instructionsWithoutDebug(); in mergeStores() 336 if (StoreInst *S1 = canSinkFromBlock(Pred1, S0)) { in mergeStores() 347 SinkBB = SplitBlockPredecessors(TailBB, {Pred0, Pred1}, ".sink.split"); in mergeStores()
|
H A D | GuardWidening.cpp | 731 ICmpInst::Predicate Pred0, Pred1; in mergeChecks() local 738 m_ICmp(Pred1, m_Specific(LHS), m_ConstantInt(RHS1)))) { in mergeChecks() 743 ConstantRange::makeExactICmpRegion(Pred1, RHS1->getValue()); in mergeChecks()
|
H A D | JumpThreading.cpp | 3020 BasicBlock *Pred1, *Pred2; in processGuards() local 3024 Pred1 = *PI++; in processGuards() 3030 if (Pred1 == Pred2) in processGuards() 3035 auto *Parent = Pred1->getSinglePredecessor(); in processGuards()
|
/freebsd/contrib/llvm-project/llvm/lib/Analysis/ |
H A D | MustExecute.cpp | 580 const BasicBlock *Pred1 = Worklist[1]; in findBackwardJoinPoint() local 582 const BasicBlock *Pred1UniquePred = Pred1->getUniquePredecessor(); in findBackwardJoinPoint() 587 } else if (Pred1 == Pred0UniquePred) { in findBackwardJoinPoint() 590 JoinBB = Pred1; in findBackwardJoinPoint()
|
H A D | InstructionSimplify.cpp | 91 CmpInst::Predicate ExpectedPred, Pred1, Pred2; in foldSelectWithBinaryOp() local 113 if (!match(Cond, m_c_BinOp(m_c_ICmp(Pred1, m_Specific(TrueVal), in foldSelectWithBinaryOp() 116 Pred1 != Pred2 || Pred1 != ExpectedPred) in foldSelectWithBinaryOp() 1706 ICmpInst::Predicate Pred0, Pred1; in simplifyAndOfICmpsWithAdd() local 1712 if (!match(Op1, m_ICmp(Pred1, m_Specific(V), m_Value()))) in simplifyAndOfICmpsWithAdd() 1726 if (Pred0 == ICmpInst::ICMP_ULT && Pred1 == ICmpInst::ICMP_SGT) in simplifyAndOfICmpsWithAdd() 1728 if (Pred0 == ICmpInst::ICMP_SLT && Pred1 == ICmpInst::ICMP_SGT && IsNSW) in simplifyAndOfICmpsWithAdd() 1732 if (Pred0 == ICmpInst::ICMP_ULE && Pred1 == ICmpInst::ICMP_SGT) in simplifyAndOfICmpsWithAdd() 1734 if (Pred0 == ICmpInst::ICMP_SLE && Pred1 == ICmpInst::ICMP_SGT && IsNSW) in simplifyAndOfICmpsWithAdd() 1740 if (Pred0 == ICmpInst::ICMP_ULT && Pred1 == ICmpInst::ICMP_UGT) in simplifyAndOfICmpsWithAdd() [all …]
|
H A D | ValueTracking.cpp | 8381 ICmpInst::Predicate Pred1, Pred2; in isKnownInversion() local 8382 if (!match(X, m_ICmp(Pred1, m_Value(A), m_Value(B))) || in isKnownInversion() 8387 return Pred1 == ICmpInst::getInversePredicate(Pred2); in isKnownInversion() 8394 const auto CR1 = ConstantRange::makeExactICmpRegion(Pred1, *RHSC1); in isKnownInversion()
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/ |
H A D | BasicBlockUtils.cpp | 1805 BasicBlock *Pred1 = nullptr; in GetIfCondition() local 1811 Pred1 = SomePHI->getIncomingBlock(0); in GetIfCondition() 1817 Pred1 = *PI++; in GetIfCondition() 1827 BranchInst *Pred1Br = dyn_cast<BranchInst>(Pred1->getTerminator()); in GetIfCondition() 1842 std::swap(Pred1, Pred2); in GetIfCondition() 1857 IfTrue = Pred1; in GetIfCondition() 1862 IfFalse = Pred1; in GetIfCondition() 1875 BasicBlock *CommonPred = Pred1->getSinglePredecessor(); in GetIfCondition() 1884 if (BI->getSuccessor(0) == Pred1) { in GetIfCondition() 1885 IfTrue = Pred1; in GetIfCondition() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/ |
H A D | InstCombineAndOrXor.cpp | 669 ICmpInst::Predicate Pred1 = (Inverted ? Cmp1->getInversePredicate() : in simplifyRangeCheck() local 680 Pred1 = ICmpInst::getSwappedPredicate(Pred1); in simplifyRangeCheck() 687 switch (Pred1) { in simplifyRangeCheck() 912 CmpInst::Predicate Pred0, Pred1; in foldIsPowerOf2OrZero() local 916 !match(Cmp1, m_ICmp(Pred1, m_Specific(X), m_ZeroInt()))) in foldIsPowerOf2OrZero() 920 if (IsAnd && Pred0 == ICmpInst::ICMP_NE && Pred1 == ICmpInst::ICMP_NE) in foldIsPowerOf2OrZero() 922 if (!IsAnd && Pred0 == ICmpInst::ICMP_EQ && Pred1 == ICmpInst::ICMP_EQ) in foldIsPowerOf2OrZero() 941 CmpInst::Predicate Pred0, Pred1; in foldIsPowerOf2() local 944 match(Cmp1, m_ICmp(Pred1, m_Intrinsic<Intrinsic::ctpop>(m_Specific(X)), in foldIsPowerOf2() 946 Pred0 == ICmpInst::ICMP_NE && Pred1 == ICmpInst::ICMP_ULT) { in foldIsPowerOf2() [all …]
|
H A D | InstCombineSelect.cpp | 1465 ICmpInst::Predicate Pred1; in canonicalizeClampLike() local 1471 m_ICmp(Pred1, m_Specific(X), in canonicalizeClampLike() 1482 switch (Pred1) { in canonicalizeClampLike() 1503 Pred1 = ICmpInst::Predicate::ICMP_SLT; in canonicalizeClampLike() 1509 assert(Pred1 == ICmpInst::Predicate::ICMP_SLT && in canonicalizeClampLike()
|
H A D | InstCombineCompares.cpp | 6711 ICmpInst::Predicate Pred1, Pred2; in foldICmpUsingBoolRange() local 6714 if (match(&I, m_c_ICmp(Pred1, m_Value(X), in foldICmpUsingBoolRange() 6718 ICmpInst::isEquality(Pred1) && ICmpInst::isEquality(Pred2)) { in foldICmpUsingBoolRange() 6723 Builder.CreateICmp(Pred1, X, Constant::getNullValue(X->getType())); in foldICmpUsingBoolRange() 6725 Pred1, X, ConstantInt::getSigned(X->getType(), IsSExt ? -1 : 1)); in foldICmpUsingBoolRange() 6727 Pred1 == ICmpInst::ICMP_EQ ? Instruction::Or : Instruction::And, in foldICmpUsingBoolRange() 6735 I, ConstantInt::getBool(I.getType(), Pred1 == ICmpInst::ICMP_NE)); in foldICmpUsingBoolRange() 6750 I, ConstantInt::getBool(I.getType(), Pred1 == ICmpInst::ICMP_NE)); in foldICmpUsingBoolRange() 6770 Instruction::ICmp, Pred1, X, in foldICmpUsingBoolRange()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/Hexagon/ |
H A D | HexagonInstrInfo.h | 236 bool SubsumesPredicate(ArrayRef<MachineOperand> Pred1,
|
H A D | HexagonInstrInfo.cpp | 1724 bool HexagonInstrInfo::SubsumesPredicate(ArrayRef<MachineOperand> Pred1, in SubsumesPredicate() argument
|
/freebsd/contrib/llvm-project/llvm/lib/Target/PowerPC/ |
H A D | PPCInstrInfo.h | 538 bool SubsumesPredicate(ArrayRef<MachineOperand> Pred1,
|
H A D | PPCInstrInfo.cpp | 2281 bool PPCInstrInfo::SubsumesPredicate(ArrayRef<MachineOperand> Pred1, in SubsumesPredicate() argument 2283 assert(Pred1.size() == 2 && "Invalid PPC first predicate"); in SubsumesPredicate() 2286 if (Pred1[1].getReg() == PPC::CTR8 || Pred1[1].getReg() == PPC::CTR) in SubsumesPredicate() 2292 if (Pred1[1].getReg() != Pred2[1].getReg()) in SubsumesPredicate() 2295 PPC::Predicate P1 = (PPC::Predicate) Pred1[0].getImm(); in SubsumesPredicate()
|
/freebsd/contrib/llvm-project/llvm/lib/IR/ |
H A D | Instructions.cpp | 3875 bool CmpInst::isImpliedTrueByMatchingCmp(Predicate Pred1, Predicate Pred2) { in isImpliedTrueByMatchingCmp() argument 3878 if (Pred1 == Pred2) in isImpliedTrueByMatchingCmp() 3881 switch (Pred1) { in isImpliedTrueByMatchingCmp() 3900 bool CmpInst::isImpliedFalseByMatchingCmp(Predicate Pred1, Predicate Pred2) { in isImpliedFalseByMatchingCmp() argument 3901 return isImpliedTrueByMatchingCmp(Pred1, getInversePredicate(Pred2)); in isImpliedFalseByMatchingCmp()
|
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/ |
H A D | InstrTypes.h | 1088 static bool isImpliedTrueByMatchingCmp(Predicate Pred1, Predicate Pred2); 1092 static bool isImpliedFalseByMatchingCmp(Predicate Pred1, Predicate Pred2);
|
/freebsd/contrib/llvm-project/llvm/lib/Target/ARM/ |
H A D | ARMBaseInstrInfo.h | 179 bool SubsumesPredicate(ArrayRef<MachineOperand> Pred1,
|
H A D | ARMBaseInstrInfo.cpp | 636 bool ARMBaseInstrInfo::SubsumesPredicate(ArrayRef<MachineOperand> Pred1, in SubsumesPredicate() argument 638 if (Pred1.size() > 2 || Pred2.size() > 2) in SubsumesPredicate() 641 ARMCC::CondCodes CC1 = (ARMCC::CondCodes)Pred1[0].getImm(); in SubsumesPredicate()
|
/freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/ |
H A D | TargetInstrInfo.h | 1636 virtual bool SubsumesPredicate(ArrayRef<MachineOperand> Pred1, in SubsumesPredicate() argument
|
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/ |
H A D | CombinerHelper.cpp | 7021 CmpInst::Predicate Pred1 = Cmp1->getCond(); in tryFoldAndOrOrICmpsUsingRanges() local 7064 IsAnd ? ICmpInst::getInversePredicate(Pred1) : Pred1, C1); in tryFoldAndOrOrICmpsUsingRanges()
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Vectorize/ |
H A D | SLPVectorizer.cpp | 18537 CmpInst::Predicate Pred1 = CI1->getPredicate(); in compareCmp() local 18539 CmpInst::Predicate SwapPred1 = CmpInst::getSwappedPredicate(Pred1); in compareCmp() 18541 CmpInst::Predicate BasePred1 = std::min(Pred1, SwapPred1); in compareCmp() 18548 bool CI1Preds = Pred1 == BasePred1; in compareCmp()
|