Lines Matching refs:getPredicate
321 Constant *C = ConstantFoldCompareInstOperands(ICI.getPredicate(), Elt, in FoldCmpLoadFromIndexedGlobal()
1133 ConstantInt::get(CmpTy, !CmpInst::isTrueWhenEqual(ICI.getPredicate()))); in FoldAllocaCmp()
1225 ICmpInst::Predicate Pred = ICI.getPredicate(); in FoldICmpDivCst()
1404 bool IsICMP_NE = ICI.getPredicate() == ICmpInst::ICMP_NE; in FoldICmpShrCst()
1413 return new ICmpInst(ICI.getPredicate(), Shr->getOperand(0), ShiftedCmpRHS); in FoldICmpShrCst()
1422 return new ICmpInst(ICI.getPredicate(), And, ShiftedCmpRHS); in FoldICmpShrCst()
1436 if (I.getPredicate() == I.ICMP_NE) in FoldICmpCstShrCst()
1442 if (I.getPredicate() == I.ICMP_NE) in FoldICmpCstShrCst()
1500 if (I.getPredicate() == I.ICMP_NE) in FoldICmpCstShlCst()
1506 if (I.getPredicate() == I.ICMP_NE) in FoldICmpCstShlCst()
1548 if (ICI.getPredicate() == ICmpInst::ICMP_SLT && in visitICmpInstWithInstAndIntCst()
1566 return new ICmpInst(ICI.getPredicate(), LHSI->getOperand(0), in visitICmpInstWithInstAndIntCst()
1576 if ((ICI.getPredicate() == ICmpInst::ICMP_SLT && RHSV == 0) || in visitICmpInstWithInstAndIntCst()
1577 (ICI.getPredicate() == ICmpInst::ICMP_SGT && RHSV.isAllOnesValue())) { in visitICmpInstWithInstAndIntCst()
1589 bool isTrueIfPositive = ICI.getPredicate() == ICmpInst::ICMP_SGT; in visitICmpInstWithInstAndIntCst()
1627 if (ICI.getPredicate() == ICmpInst::ICMP_UGT && in visitICmpInstWithInstAndIntCst()
1633 if (ICI.getPredicate() == ICmpInst::ICMP_ULT && in visitICmpInstWithInstAndIntCst()
1657 return new ICmpInst(ICI.getPredicate(), NewAnd, in visitICmpInstWithInstAndIntCst()
1673 return new ICmpInst(ICI.getPredicate(), NewAnd, in visitICmpInstWithInstAndIntCst()
1739 if (ICI.getPredicate() == ICmpInst::ICMP_EQ) in visitICmpInstWithInstAndIntCst()
1741 if (ICI.getPredicate() == ICmpInst::ICMP_NE) in visitICmpInstWithInstAndIntCst()
1825 if (ICI.getPredicate() == ICmpInst::ICMP_UGT) { in visitICmpInstWithInstAndIntCst()
1852 ICI.getPredicate() == ICmpInst::ICMP_EQ ? ICmpInst::ICMP_UGT in visitICmpInstWithInstAndIntCst()
1865 return new ICmpInst(ICI.getPredicate() == ICmpInst::ICMP_EQ in visitICmpInstWithInstAndIntCst()
1878 if (ICI.getPredicate() == ICmpInst::ICMP_SLT && in visitICmpInstWithInstAndIntCst()
1890 Value *ICIP = Builder->CreateICmp(ICI.getPredicate(), P, in visitICmpInstWithInstAndIntCst()
1892 Value *ICIQ = Builder->CreateICmp(ICI.getPredicate(), Q, in visitICmpInstWithInstAndIntCst()
1895 if (ICI.getPredicate() == ICmpInst::ICMP_EQ) in visitICmpInstWithInstAndIntCst()
1910 ICmpInst::Predicate pred = ICI.getPredicate(); in visitICmpInstWithInstAndIntCst()
1929 ICmpInst::Predicate Pred = ICI.getPredicate(); in visitICmpInstWithInstAndIntCst()
2000 bool IsICMP_NE = ICI.getPredicate() == ICmpInst::ICMP_NE; in visitICmpInstWithInstAndIntCst()
2008 return new ICmpInst(ICI.getPredicate(), LHSI->getOperand(0), in visitICmpInstWithInstAndIntCst()
2014 return new ICmpInst(ICI.getPredicate(), LHSI->getOperand(0), in visitICmpInstWithInstAndIntCst()
2025 return new ICmpInst(ICI.getPredicate(), And, in visitICmpInstWithInstAndIntCst()
2032 ICmpInst::Predicate pred = ICI.getPredicate(); in visitICmpInstWithInstAndIntCst()
2042 isSignBitCheck(ICI.getPredicate(), RHS, TrueIfSigned)) { in visitICmpInstWithInstAndIntCst()
2067 return new ICmpInst(ICI.getPredicate(), in visitICmpInstWithInstAndIntCst()
2087 return new ICmpInst(ICI.getPredicate(), BO->getOperand(0), RHS); in visitICmpInstWithInstAndIntCst()
2099 if (ICI.getPredicate() == ICmpInst::ICMP_UGT) { in visitICmpInstWithInstAndIntCst()
2106 if (ICI.getPredicate() == ICmpInst::ICMP_ULT) { in visitICmpInstWithInstAndIntCst()
2134 if (ICI.getPredicate() == ICmpInst::ICMP_ULT && LHSI->hasOneUse() && in visitICmpInstWithInstAndIntCst()
2143 if (ICI.getPredicate() == ICmpInst::ICMP_UGT && LHSI->hasOneUse() && in visitICmpInstWithInstAndIntCst()
2157 ConstantRange CR = ICI.makeConstantRange(ICI.getPredicate(), RHSV) in visitICmpInstWithInstAndIntCst()
2181 if (ICI.getPredicate() == ICmpInst::ICMP_ULT && LHSI->hasOneUse() && in visitICmpInstWithInstAndIntCst()
2190 if (ICI.getPredicate() == ICmpInst::ICMP_UGT && LHSI->hasOneUse() && in visitICmpInstWithInstAndIntCst()
2201 bool isICMP_NE = ICI.getPredicate() == ICmpInst::ICMP_NE; in visitICmpInstWithInstAndIntCst()
2215 return new ICmpInst(ICI.getPredicate(), NewRem, in visitICmpInstWithInstAndIntCst()
2224 return new ICmpInst(ICI.getPredicate(), BO->getOperand(0), in visitICmpInstWithInstAndIntCst()
2232 return new ICmpInst(ICI.getPredicate(), BOp0, NegVal); in visitICmpInstWithInstAndIntCst()
2234 return new ICmpInst(ICI.getPredicate(), NegVal, BOp1); in visitICmpInstWithInstAndIntCst()
2238 return new ICmpInst(ICI.getPredicate(), BOp0, Neg); in visitICmpInstWithInstAndIntCst()
2247 return new ICmpInst(ICI.getPredicate(), BO->getOperand(0), in visitICmpInstWithInstAndIntCst()
2251 return new ICmpInst(ICI.getPredicate(), BO->getOperand(0), in visitICmpInstWithInstAndIntCst()
2260 return new ICmpInst(ICI.getPredicate(), BO->getOperand(1), in visitICmpInstWithInstAndIntCst()
2264 return new ICmpInst(ICI.getPredicate(), BO->getOperand(0), in visitICmpInstWithInstAndIntCst()
2283 return new ICmpInst(ICI.getPredicate(), And, NotBOC); in visitICmpInstWithInstAndIntCst()
2331 return new ICmpInst(ICI.getPredicate(), BO->getOperand(0), in visitICmpInstWithInstAndIntCst()
2401 return new ICmpInst(ICmp.getPredicate(), LHSCIOp, RHSOp); in visitICmpInstWithCastAndCast()
2426 return new ICmpInst(ICmp.getPredicate(), LHSCIOp, RHSCIOp); in visitICmpInstWithCastAndCast()
2431 return new ICmpInst(ICmp.getPredicate(), LHSCIOp, RHSCIOp); in visitICmpInstWithCastAndCast()
2451 return new ICmpInst(ICmp.getPredicate(), LHSCIOp, Res1); in visitICmpInstWithCastAndCast()
2456 return new ICmpInst(ICmp.getPredicate(), LHSCIOp, Res1); in visitICmpInstWithCastAndCast()
2481 if (ICmp.getPredicate() == ICmpInst::ICMP_ULT) in visitICmpInstWithCastAndCast()
2484 assert(ICmp.getPredicate() == ICmpInst::ICMP_UGT && "ICmp should be folded!"); in visitICmpInstWithCastAndCast()
2747 switch (I.getPredicate()) { in ProcessUMulZExtIdiom()
2877 switch (I.getPredicate()) { in ProcessUMulZExtIdiom()
2918 switch (I.getPredicate()) { in DemandedBitsLHSMask()
3076 if (isChainSelectCmpBranch(SI) && Icmp->getPredicate() == ICmpInst::ICMP_EQ) { in replacedSelectWithOperand()
3100 ICmpInst::Predicate Pred = I.getPredicate(); in canonicalizeCmpWithConstant()
3170 SimplifyICmpInst(I.getPredicate(), Op0, Op1, DL, TLI, DT, AC, &I)) in visitICmpInst()
3175 if (I.getPredicate() == ICmpInst::ICMP_NE && match(Op1, m_Zero())) { in visitICmpInst()
3181 return CmpInst::Create(Instruction::ICmp, I.getPredicate(), V, Op1); in visitICmpInst()
3185 return CmpInst::Create(Instruction::ICmp, I.getPredicate(), V, Op1); in visitICmpInst()
3194 switch (I.getPredicate()) { in visitICmpInst()
3263 if (I.getPredicate() == ICmpInst::ICMP_UGT && in visitICmpInst()
3270 if (CI->isZero() && I.getPredicate() == ICmpInst::ICMP_SGT) in visitICmpInst()
3275 return new ICmpInst(I.getPredicate(), B, CI); in visitICmpInst()
3277 return new ICmpInst(I.getPredicate(), A, CI); in visitICmpInst()
3288 return new ICmpInst(I.getPredicate(), A, B); in visitICmpInst()
3291 if (I.getPredicate() == ICmpInst::ICMP_SGT && CI->isAllOnesValue() && in visitICmpInst()
3296 if (I.getPredicate() == ICmpInst::ICMP_SGT && CI->isZero() && in visitICmpInst()
3301 if (I.getPredicate() == ICmpInst::ICMP_SLT && CI->isZero() && in visitICmpInst()
3306 if (I.getPredicate() == ICmpInst::ICMP_SLT && CI->isOne() && in visitICmpInst()
3329 isSignBit = isSignBitCheck(I.getPredicate(), CI, UnusedBit); in visitICmpInst()
3341 ConstantRange CR = ConstantRange::makeAllowedICmpRegion(I.getPredicate(), in visitICmpInst()
3404 return new ICmpInst(I.getPredicate(), in visitICmpInst()
3407 return new ICmpInst(I.getPredicate(), Op0, in visitICmpInst()
3412 switch (I.getPredicate()) { in visitICmpInst()
3631 ICmpInst::Predicate Pred = I.getPredicate() == ICmpInst::ICMP_EQ in visitICmpInst()
3646 return new ICmpInst(I.getPredicate(), LHSI->getOperand(0), in visitICmpInst()
3664 Op1 = ConstantExpr::getICmp(I.getPredicate(), C, RHSC); in visitICmpInst()
3668 Op2 = ConstantExpr::getICmp(I.getPredicate(), C, RHSC); in visitICmpInst()
3696 Op1 = Builder->CreateICmp(I.getPredicate(), LHSI->getOperand(1), in visitICmpInst()
3699 Op2 = Builder->CreateICmp(I.getPredicate(), LHSI->getOperand(2), in visitICmpInst()
3709 return new ICmpInst(I.getPredicate(), LHSI->getOperand(0), in visitICmpInst()
3729 if (Instruction *NI = FoldGEPICmp(GEP, Op1, I.getPredicate(), I)) in visitICmpInst()
3733 ICmpInst::getSwappedPredicate(I.getPredicate()), I)) in visitICmpInst()
3771 return new ICmpInst(I.getPredicate(), Op0, Op1); in visitICmpInst()
3791 CmpInst::Predicate Pred = I.getPredicate(); in visitICmpInst()
4010 return new ICmpInst(I.getPredicate(), BO0->getOperand(0), in visitICmpInst()
4047 return new ICmpInst(I.getPredicate(), And1, And2); in visitICmpInst()
4060 return new ICmpInst(I.getPredicate(), BO0->getOperand(0), in visitICmpInst()
4069 return new ICmpInst(I.getPredicate(), BO0->getOperand(0), in visitICmpInst()
4081 if (match(BO0, BitwiseAnd) && I.getPredicate() == ICmpInst::ICMP_ULT) { in visitICmpInst()
4103 return new ICmpInst(I.getPredicate(), B, A); in visitICmpInst()
4105 return new ICmpInst(I.getPredicate(), ConstantExpr::getNot(RHSC), A); in visitICmpInst()
4138 return new ICmpInst(I.getPredicate(), OtherVal, in visitICmpInst()
4149 return new ICmpInst(I.getPredicate(), A, Xor); in visitICmpInst()
4153 if (A == C) return new ICmpInst(I.getPredicate(), B, D); in visitICmpInst()
4154 if (A == D) return new ICmpInst(I.getPredicate(), B, C); in visitICmpInst()
4155 if (B == C) return new ICmpInst(I.getPredicate(), A, D); in visitICmpInst()
4156 if (B == D) return new ICmpInst(I.getPredicate(), A, C); in visitICmpInst()
4164 return new ICmpInst(I.getPredicate(), OtherVal, in visitICmpInst()
4204 return new ICmpInst(I.getPredicate(), A, in visitICmpInst()
4217 ICmpInst::Predicate Pred = I.getPredicate() == ICmpInst::ICMP_NE in visitICmpInst()
4236 return new ICmpInst(I.getPredicate(), And, in visitICmpInst()
4262 return new ICmpInst(I.getPredicate(), Mask, Builder->getInt(CmpV)); in visitICmpInst()
4276 if (I.getPredicate() == ICmpInst::ICMP_EQ) in visitICmpInst()
4287 return FoldICmpAddOpCst(I, X, Cst, I.getPredicate()); in visitICmpInst()
4313 FCmpInst::Predicate P = I.getPredicate(); in FoldFCmp_IntToFP_Cst()
4368 switch (I.getPredicate()) { in FoldFCmp_IntToFP_Cst()
4549 if (Value *V = SimplifyFCmpInst(I.getPredicate(), Op0, Op1, in visitFCmpInst()
4555 switch (I.getPredicate()) { in visitFCmpInst()
4630 return new FCmpInst(I.getPredicate(), LHSExt->getOperand(0), in visitFCmpInst()
4675 switch (I.getPredicate()) { in visitFCmpInst()
4696 return new FCmpInst(I.getPredicate(), CI->getArgOperand(0), RHSC); in visitFCmpInst()
4711 return new FCmpInst(I.getPredicate(), LHSExt->getOperand(0), in visitFCmpInst()