Lines Matching refs:getPredicate
291 Constant *C = ConstantFoldCompareInstOperands(ICI.getPredicate(), Elt, in FoldCmpLoadFromIndexedGlobal()
811 ICmpInst::Predicate Pred = ICI.getPredicate(); in FoldICmpDivCst()
992 bool IsICMP_NE = ICI.getPredicate() == ICmpInst::ICMP_NE; in FoldICmpShrCst()
1002 return new ICmpInst(ICI.getPredicate(), Shr->getOperand(0), ShiftedCmpRHS); in FoldICmpShrCst()
1011 return new ICmpInst(ICI.getPredicate(), And, ShiftedCmpRHS); in FoldICmpShrCst()
1039 return new ICmpInst(ICI.getPredicate(), LHSI->getOperand(0), in visitICmpInstWithInstAndIntCst()
1049 if ((ICI.getPredicate() == ICmpInst::ICMP_SLT && RHSV == 0) || in visitICmpInstWithInstAndIntCst()
1050 (ICI.getPredicate() == ICmpInst::ICMP_SGT && RHSV.isAllOnesValue())) { in visitICmpInstWithInstAndIntCst()
1062 bool isTrueIfPositive = ICI.getPredicate() == ICmpInst::ICMP_SGT; in visitICmpInstWithInstAndIntCst()
1120 return new ICmpInst(ICI.getPredicate(), NewAnd, in visitICmpInstWithInstAndIntCst()
1136 return new ICmpInst(ICI.getPredicate(), NewAnd, in visitICmpInstWithInstAndIntCst()
1185 if (ICI.getPredicate() == ICmpInst::ICMP_EQ) in visitICmpInstWithInstAndIntCst()
1188 if (ICI.getPredicate() == ICmpInst::ICMP_NE) in visitICmpInstWithInstAndIntCst()
1251 Value *ICIP = Builder->CreateICmp(ICI.getPredicate(), P, in visitICmpInstWithInstAndIntCst()
1253 Value *ICIQ = Builder->CreateICmp(ICI.getPredicate(), Q, in visitICmpInstWithInstAndIntCst()
1256 if (ICI.getPredicate() == ICmpInst::ICMP_EQ) in visitICmpInstWithInstAndIntCst()
1284 bool IsICMP_NE = ICI.getPredicate() == ICmpInst::ICMP_NE; in visitICmpInstWithInstAndIntCst()
1293 return new ICmpInst(ICI.getPredicate(), LHSI->getOperand(0), in visitICmpInstWithInstAndIntCst()
1305 return new ICmpInst(ICI.getPredicate(), And, in visitICmpInstWithInstAndIntCst()
1313 isSignBitCheck(ICI.getPredicate(), RHS, TrueIfSigned)) { in visitICmpInstWithInstAndIntCst()
1338 return new ICmpInst(ICI.getPredicate(), BO->getOperand(0), RHS); in visitICmpInstWithInstAndIntCst()
1364 ConstantRange CR = ICI.makeConstantRange(ICI.getPredicate(), RHSV) in visitICmpInstWithInstAndIntCst()
1390 bool isICMP_NE = ICI.getPredicate() == ICmpInst::ICMP_NE; in visitICmpInstWithInstAndIntCst()
1404 return new ICmpInst(ICI.getPredicate(), NewRem, in visitICmpInstWithInstAndIntCst()
1413 return new ICmpInst(ICI.getPredicate(), BO->getOperand(0), in visitICmpInstWithInstAndIntCst()
1421 return new ICmpInst(ICI.getPredicate(), BOp0, NegVal); in visitICmpInstWithInstAndIntCst()
1423 return new ICmpInst(ICI.getPredicate(), NegVal, BOp1); in visitICmpInstWithInstAndIntCst()
1427 return new ICmpInst(ICI.getPredicate(), BOp0, Neg); in visitICmpInstWithInstAndIntCst()
1435 return new ICmpInst(ICI.getPredicate(), BO->getOperand(0), in visitICmpInstWithInstAndIntCst()
1439 return new ICmpInst(ICI.getPredicate(), BO->getOperand(0), in visitICmpInstWithInstAndIntCst()
1447 return new ICmpInst(ICI.getPredicate(), BO->getOperand(1), in visitICmpInstWithInstAndIntCst()
1451 return new ICmpInst(ICI.getPredicate(), BO->getOperand(0), in visitICmpInstWithInstAndIntCst()
1567 return new ICmpInst(ICI.getPredicate(), LHSCIOp, RHSOp); in visitICmpInstWithCastAndCast()
1592 return new ICmpInst(ICI.getPredicate(), LHSCIOp, RHSCIOp); in visitICmpInstWithCastAndCast()
1597 return new ICmpInst(ICI.getPredicate(), LHSCIOp, RHSCIOp); in visitICmpInstWithCastAndCast()
1618 return new ICmpInst(ICI.getPredicate(), LHSCIOp, Res1); in visitICmpInstWithCastAndCast()
1623 return new ICmpInst(ICI.getPredicate(), LHSCIOp, Res1); in visitICmpInstWithCastAndCast()
1646 if (ICI.getPredicate() == ICmpInst::ICMP_ULT) in visitICmpInstWithCastAndCast()
1649 assert(ICI.getPredicate() == ICmpInst::ICMP_UGT && "ICmp should be folded!"); in visitICmpInstWithCastAndCast()
1783 switch (I.getPredicate()) { in DemandedBitsLHSMask()
1821 if (Value *V = SimplifyICmpInst(I.getPredicate(), Op0, Op1, TD)) in visitICmpInst()
1826 if (I.getPredicate() == ICmpInst::ICMP_NE && match(Op1, m_Zero())) in visitICmpInst()
1833 return CmpInst::Create(Instruction::ICmp, I.getPredicate(), V, Op1); in visitICmpInst()
1837 return CmpInst::Create(Instruction::ICmp, I.getPredicate(), V, Op1); in visitICmpInst()
1846 switch (I.getPredicate()) { in visitICmpInst()
1912 if (I.getPredicate() == ICmpInst::ICMP_UGT && in visitICmpInst()
1922 return new ICmpInst(I.getPredicate(), A, B); in visitICmpInst()
1929 switch (I.getPredicate()) { in visitICmpInst()
1952 isSignBit = isSignBitCheck(I.getPredicate(), CI, UnusedBit); in visitICmpInst()
1991 return new ICmpInst(I.getPredicate(), in visitICmpInst()
1994 return new ICmpInst(I.getPredicate(), Op0, in visitICmpInst()
1999 switch (I.getPredicate()) { in visitICmpInst()
2209 return new ICmpInst(I.getPredicate(), LHSI->getOperand(0), in visitICmpInst()
2226 Op1 = ConstantExpr::getICmp(I.getPredicate(), C, RHSC); in visitICmpInst()
2228 Op2 = ConstantExpr::getICmp(I.getPredicate(), C, RHSC); in visitICmpInst()
2238 Op1 = Builder->CreateICmp(I.getPredicate(), LHSI->getOperand(1), in visitICmpInst()
2241 Op2 = Builder->CreateICmp(I.getPredicate(), LHSI->getOperand(2), in visitICmpInst()
2252 return new ICmpInst(I.getPredicate(), LHSI->getOperand(0), in visitICmpInst()
2272 if (Instruction *NI = FoldGEPICmp(GEP, Op1, I.getPredicate(), I)) in visitICmpInst()
2276 ICmpInst::getSwappedPredicate(I.getPredicate()), I)) in visitICmpInst()
2303 return new ICmpInst(I.getPredicate(), Op0, Op1); in visitICmpInst()
2323 CmpInst::Predicate Pred = I.getPredicate(); in visitICmpInst()
2429 return new ICmpInst(I.getPredicate(), BO0->getOperand(0), in visitICmpInst()
2466 return new ICmpInst(I.getPredicate(), And1, And2); in visitICmpInst()
2479 return new ICmpInst(I.getPredicate(), BO0->getOperand(0), in visitICmpInst()
2488 return new ICmpInst(I.getPredicate(), BO0->getOperand(0), in visitICmpInst()
2500 return new ICmpInst(I.getPredicate(), B, A); in visitICmpInst()
2502 return new ICmpInst(I.getPredicate(), ConstantExpr::getNot(RHSC), A); in visitICmpInst()
2507 if (I.getPredicate() == ICmpInst::ICMP_ULT && in visitICmpInst()
2515 if (I.getPredicate() == ICmpInst::ICMP_UGT && in visitICmpInst()
2528 return new ICmpInst(I.getPredicate(), OtherVal, in visitICmpInst()
2540 return new ICmpInst(I.getPredicate(), A, Xor); in visitICmpInst()
2544 if (A == C) return new ICmpInst(I.getPredicate(), B, D); in visitICmpInst()
2545 if (A == D) return new ICmpInst(I.getPredicate(), B, C); in visitICmpInst()
2546 if (B == C) return new ICmpInst(I.getPredicate(), A, D); in visitICmpInst()
2547 if (B == D) return new ICmpInst(I.getPredicate(), A, C); in visitICmpInst()
2555 return new ICmpInst(I.getPredicate(), OtherVal, in visitICmpInst()
2605 return new ICmpInst(I.getPredicate(), Mask, Builder->getInt(CmpV)); in visitICmpInst()
2614 return FoldICmpAddOpCst(I, X, Cst, I.getPredicate(), Op0); in visitICmpInst()
2661 switch (I.getPredicate()) { in FoldFCmp_IntToFP_Cst()
2844 if (Value *V = SimplifyFCmpInst(I.getPredicate(), Op0, Op1, TD)) in visitFCmpInst()
2849 switch (I.getPredicate()) { in visitFCmpInst()
2913 return new FCmpInst(I.getPredicate(), LHSExt->getOperand(0), in visitFCmpInst()
2938 Op1 = ConstantExpr::getCompare(I.getPredicate(), C, RHSC); in visitFCmpInst()
2940 Op2 = Builder->CreateFCmp(I.getPredicate(), in visitFCmpInst()
2944 Op2 = ConstantExpr::getCompare(I.getPredicate(), C, RHSC); in visitFCmpInst()
2946 Op1 = Builder->CreateFCmp(I.getPredicate(), LHSI->getOperand(1), in visitFCmpInst()
2985 return new FCmpInst(I.getPredicate(), LHSExt->getOperand(0), in visitFCmpInst()