Lines Matching refs:ConstantInt
108 ConstantInt *AndCst) { in foldCmpLoadFromIndexedGlobal()
128 !isa<ConstantInt>(GEP->getOperand(1)) || in foldCmpLoadFromIndexedGlobal()
129 !cast<ConstantInt>(GEP->getOperand(1))->isZero() || in foldCmpLoadFromIndexedGlobal()
140 ConstantInt *Idx = dyn_cast<ConstantInt>(GEP->getOperand(i)); in foldCmpLoadFromIndexedGlobal()
218 if (!isa<ConstantInt>(C)) return nullptr; in foldCmpLoadFromIndexedGlobal()
222 bool IsTrueForElt = !cast<ConstantInt>(C)->isZero(); in foldCmpLoadFromIndexedGlobal()
299 Value *Mask = ConstantInt::get(Idx->getType(), -1); in foldCmpLoadFromIndexedGlobal()
314 Value *FirstTrueIdx = ConstantInt::get(Idx->getType(), FirstTrueElement); in foldCmpLoadFromIndexedGlobal()
322 Value *SecondTrueIdx = ConstantInt::get(Idx->getType(), SecondTrueElement); in foldCmpLoadFromIndexedGlobal()
335 Value *FirstFalseIdx = ConstantInt::get(Idx->getType(), FirstFalseElement); in foldCmpLoadFromIndexedGlobal()
343 Value *SecondFalseIdx = ConstantInt::get(Idx->getType(),SecondFalseElement); in foldCmpLoadFromIndexedGlobal()
356 Value *Offs = ConstantInt::get(Idx->getType(), -FirstTrueElement); in foldCmpLoadFromIndexedGlobal()
360 Value *End = ConstantInt::get(Idx->getType(), in foldCmpLoadFromIndexedGlobal()
371 Value *Offs = ConstantInt::get(Idx->getType(), -FirstFalseElement); in foldCmpLoadFromIndexedGlobal()
375 Value *End = ConstantInt::get(Idx->getType(), in foldCmpLoadFromIndexedGlobal()
397 V = Builder.CreateLShr(ConstantInt::get(Ty, MagicBitvector), V); in foldCmpLoadFromIndexedGlobal()
398 V = Builder.CreateAnd(ConstantInt::get(Ty, 1), V); in foldCmpLoadFromIndexedGlobal()
399 return new ICmpInst(ICmpInst::ICMP_NE, V, ConstantInt::get(Ty, 0)); in foldCmpLoadFromIndexedGlobal()
428 if (ConstantInt *CI = dyn_cast<ConstantInt>(GEP->getOperand(i))) { in evaluateGEPOffsetExpression()
456 ConstantInt *CI = dyn_cast<ConstantInt>(GEP->getOperand(i)); in evaluateGEPOffsetExpression()
504 Constant *OffsetVal = ConstantInt::get(IntPtrTy, NewOffs); in evaluateGEPOffsetExpression()
649 NewInsts[Base] = ConstantInt::getNullValue(IndexType); in rewriteGEPAsOffset()
690 if (isa<ConstantInt>(Op) && cast<ConstantInt>(Op)->isZero()) in rewriteGEPAsOffset()
753 Constant *Index = ConstantInt::getNullValue(IndexType); in getAsConstantIndexedAddress()
984 ConstantInt::get(I.getType(), ICmpInst::isTrueWhenEqual(Cond))); in foldGEPICmp()
1080 auto *Res = ConstantInt::get(ICI.getType(), in foldAllocaCmp()
1097 Constant *R = ConstantInt::get(X->getType(), in foldICmpAddOpConst()
1107 ConstantInt::get(X->getType(), -C)); in foldICmpAddOpConst()
1119 ConstantInt::get(X->getType(), SMax - C)); in foldICmpAddOpConst()
1130 ConstantInt::get(X->getType(), SMax - (C - 1))); in foldICmpAddOpConst()
1164 ConstantInt::get(A->getType(), AP2.logBase2())); in foldICmpShrConstConst()
1167 return getICmp(I.ICMP_EQ, A, ConstantInt::getNullValue(A->getType())); in foldICmpShrConstConst()
1180 return getICmp(I.ICMP_UGE, A, ConstantInt::get(A->getType(), Shift)); in foldICmpShrConstConst()
1181 return getICmp(I.ICMP_EQ, A, ConstantInt::get(A->getType(), Shift)); in foldICmpShrConstConst()
1183 return getICmp(I.ICMP_EQ, A, ConstantInt::get(A->getType(), Shift)); in foldICmpShrConstConst()
1189 auto *TorF = ConstantInt::get(I.getType(), I.getPredicate() == I.ICMP_NE); in foldICmpShrConstConst()
1215 ConstantInt::get(A->getType(), AP2.getBitWidth() - AP2TrailingZeros)); in foldICmpShlConstConst()
1218 return getICmp(I.ICMP_EQ, A, ConstantInt::getNullValue(A->getType())); in foldICmpShlConstConst()
1224 return getICmp(I.ICMP_EQ, A, ConstantInt::get(A->getType(), Shift)); in foldICmpShlConstConst()
1228 auto *TorF = ConstantInt::get(I.getType(), I.getPredicate() == I.ICMP_NE); in foldICmpShlConstConst()
1240 ConstantInt *CI2, ConstantInt *CI1, in processUGT_ADDCST_ADD()
1372 X, ConstantInt::getNullValue(XTy)); in foldSignBitTest()
1431 ConstantInt *CI, *CI2; // I = icmp ugt (add (add A, B), CI2), CI in foldICmpWithConstant()
1485 return replaceInstUsesWith(Cmp, ConstantInt::get(Cmp.getType(), *Imp)); in foldICmpWithDominatingICmp()
1548 ConstantInt::get(V->getType(), 1)); in foldICmpTruncConstant()
1557 Constant *Mask = ConstantInt::get(X->getType(), in foldICmpTruncConstant()
1560 Constant *WideC = ConstantInt::get(X->getType(), C.zext(SrcBits)); in foldICmpTruncConstant()
1573 return new ICmpInst(Pred, X, ConstantInt::get(X->getType(), NewRHS)); in foldICmpTruncConstant()
1588 ConstantInt::getNullValue(X->getType())) in foldICmpTruncConstant()
1590 ConstantInt::getAllOnesValue(X->getType())); in foldICmpTruncConstant()
1620 ConstantInt::getAllOnesValue(X->getType())); in foldICmpXorConstant()
1623 ConstantInt::getNullValue(X->getType())); in foldICmpXorConstant()
1630 return new ICmpInst(Pred, X, ConstantInt::get(X->getType(), C ^ *XorC)); in foldICmpXorConstant()
1637 return new ICmpInst(Pred, X, ConstantInt::get(X->getType(), C ^ *XorC)); in foldICmpXorConstant()
1654 ConstantInt::get(X->getType(), ~C)); in foldICmpXorConstant()
1658 ConstantInt::get(X->getType(), ~C)); in foldICmpXorConstant()
1720 return replaceInstUsesWith(Cmp, ConstantInt::getFalse(Cmp.getType())); in foldICmpAndShift()
1722 return replaceInstUsesWith(Cmp, ConstantInt::getTrue(Cmp.getType())); in foldICmpAndShift()
1725 Shift->getOperand(0), ConstantInt::get(And->getType(), NewAndCst)); in foldICmpAndShift()
1727 NewAnd, ConstantInt::get(And->getType(), NewCmpCst)); in foldICmpAndShift()
1789 Constant *NegBOC = ConstantInt::get(And->getType(), -NewC2); in foldICmpAndConstConst()
1812 Constant *ZextC1 = ConstantInt::get(WideType, C1.zext(WideScalarBits)); in foldICmpAndConstConst()
1813 Constant *ZextC2 = ConstantInt::get(WideType, C2->zext(WideScalarBits)); in foldICmpAndConstConst()
1878 return new ICmpInst(NewPred, X, ConstantInt::getNullValue(X->getType())); in foldICmpAndConstant()
1887 if (auto *C2 = dyn_cast<ConstantInt>(Y)) in foldICmpAndConstant()
1920 ConstantInt::get(V->getType(), 1)); in foldICmpOrConstant()
1940 Constant *NewC = ConstantInt::get(Or->getType(), C ^ (*MaskC)); in foldICmpOrConstant()
1952 Constant *NewC = ConstantInt::get(X->getType(), TrueIfSigned ? 1 : 0); in foldICmpOrConstant()
1964 Builder.CreateICmp(Pred, P, ConstantInt::getNullValue(P->getType())); in foldICmpOrConstant()
1966 Builder.CreateICmp(Pred, Q, ConstantInt::getNullValue(Q->getType())); in foldICmpOrConstant()
2013 Constant *NewC = ConstantInt::get(Mul->getType(), C.sdiv(*MulC)); in foldICmpMulConstant()
2018 Constant *NewC = ConstantInt::get(Mul->getType(), C.udiv(*MulC)); in foldICmpMulConstant()
2036 NewC = ConstantInt::get( in foldICmpMulConstant()
2040 NewC = ConstantInt::get( in foldICmpMulConstant()
2045 NewC = ConstantInt::get( in foldICmpMulConstant()
2049 NewC = ConstantInt::get( in foldICmpMulConstant()
2090 return new ICmpInst(Pred, Y, ConstantInt::get(ShiftType, CLog2)); in foldICmpShlOne()
2092 Constant *BitWidthMinusOne = ConstantInt::get(ShiftType, TypeBits - 1); in foldICmpShlOne()
2113 return new ICmpInst(Pred, Y, ConstantInt::get(ShiftType, C.logBase2())); in foldICmpShlOne()
2148 return new ICmpInst(Pred, X, ConstantInt::get(ShType, ShiftedC)); in foldICmpShlConstant()
2153 return new ICmpInst(Pred, X, ConstantInt::get(ShType, ShiftedC)); in foldICmpShlConstant()
2162 return new ICmpInst(Pred, X, ConstantInt::get(ShType, ShiftedC)); in foldICmpShlConstant()
2178 return new ICmpInst(Pred, X, ConstantInt::get(ShType, ShiftedC)); in foldICmpShlConstant()
2183 return new ICmpInst(Pred, X, ConstantInt::get(ShType, ShiftedC)); in foldICmpShlConstant()
2192 return new ICmpInst(Pred, X, ConstantInt::get(ShType, ShiftedC)); in foldICmpShlConstant()
2198 Constant *Mask = ConstantInt::get( in foldICmpShlConstant()
2202 Constant *LShrC = ConstantInt::get(ShType, C.lshr(*ShiftAmt)); in foldICmpShlConstant()
2210 Constant *Mask = ConstantInt::get( in foldICmpShlConstant()
2252 ConstantInt::get(TruncTy, C.ashr(*ShiftAmt).trunc(TypeBits - Amt)); in foldICmpShlConstant()
2283 ConstantInt::getNullValue(X->getType())); in foldICmpShrConstant()
2297 Constant *NewC = ConstantInt::get(Shr->getType(), CmpLZ - ShiftLZ); in foldICmpShrConstant()
2327 return new ICmpInst(Pred, X, ConstantInt::get(ShrTy, ShiftedC)); in foldICmpShrConstant()
2334 return new ICmpInst(Pred, X, ConstantInt::get(ShrTy, ShiftedC)); in foldICmpShrConstant()
2343 return new ICmpInst(Pred, X, ConstantInt::get(ShrTy, ShiftedC)); in foldICmpShrConstant()
2353 ConstantInt::getNullValue(ShrTy)); in foldICmpShrConstant()
2357 ConstantInt::getAllOnesValue(ShrTy)); in foldICmpShrConstant()
2366 return new ICmpInst(Pred, X, ConstantInt::get(ShrTy, ShiftedC)); in foldICmpShrConstant()
2372 return new ICmpInst(Pred, X, ConstantInt::get(ShrTy, ShiftedC)); in foldICmpShrConstant()
2391 return new ICmpInst(Pred, X, ConstantInt::get(ShrTy, C << ShAmtVal)); in foldICmpShrConstant()
2397 ConstantInt::get(ShrTy, (C + 1).shl(ShAmtVal))); in foldICmpShrConstant()
2400 ConstantInt::get(ShrTy, (C + 1).shl(ShAmtVal) - 1)); in foldICmpShrConstant()
2407 Constant *Mask = ConstantInt::get(ShrTy, Val); in foldICmpShrConstant()
2409 return new ICmpInst(Pred, And, ConstantInt::get(ShrTy, C << ShAmtVal)); in foldICmpShrConstant()
2447 Constant *MaskC = ConstantInt::get(Ty, SignMask | (*DivisorC - 1)); in foldICmpSRemConstant()
2451 return new ICmpInst(Pred, And, ConstantInt::get(Ty, C)); in foldICmpSRemConstant()
2457 return new ICmpInst(ICmpInst::ICMP_SGT, And, ConstantInt::getNullValue(Ty)); in foldICmpSRemConstant()
2462 return new ICmpInst(ICmpInst::ICMP_UGT, And, ConstantInt::get(Ty, SignMask)); in foldICmpSRemConstant()
2485 ConstantInt::get(Ty, C2->udiv(C + 1))); in foldICmpUDivConstant()
2492 ConstantInt::get(Ty, C2->udiv(C))); in foldICmpUDivConstant()
2518 Value *XBig = Builder.CreateICmp(Pred, X, ConstantInt::get(Ty, C)); in foldICmpDivConstant()
2519 Value *YOne = Builder.CreateICmp(Pred, Y, ConstantInt::get(Ty, 1)); in foldICmpDivConstant()
2642 X, ConstantInt::get(Ty, LoBound)); in foldICmpDivConstant()
2645 X, ConstantInt::get(Ty, HiBound)); in foldICmpDivConstant()
2653 X, ConstantInt::get(Ty, LoBound)); in foldICmpDivConstant()
2656 X, ConstantInt::get(Ty, HiBound)); in foldICmpDivConstant()
2665 return new ICmpInst(Pred, X, ConstantInt::get(Ty, LoBound)); in foldICmpDivConstant()
2673 return new ICmpInst(ICmpInst::ICMP_UGE, X, ConstantInt::get(Ty, HiBound)); in foldICmpDivConstant()
2674 return new ICmpInst(ICmpInst::ICMP_SGE, X, ConstantInt::get(Ty, HiBound)); in foldICmpDivConstant()
2693 ConstantExpr::getSub(SubC, ConstantInt::get(Ty, C))); in foldICmpSubConstant()
2705 return new ICmpInst(SwappedPred, Y, ConstantInt::get(Ty, SubResult)); in foldICmpSubConstant()
2760 Value *Add = Builder.CreateAdd(Y, ConstantInt::get(Ty, ~(*C2)), "notsub", in foldICmpSubConstant()
2762 return new ICmpInst(SwappedPred, Add, ConstantInt::get(Ty, ~C)); in foldICmpSubConstant()
2794 return new ICmpInst(Pred, X, ConstantInt::get(Ty, NewC)); in foldICmpAddConstant()
2802 return new ICmpInst(ICmpInst::ICMP_SLT, X, ConstantInt::get(Ty, Upper)); in foldICmpAddConstant()
2804 return new ICmpInst(ICmpInst::ICMP_SGE, X, ConstantInt::get(Ty, Lower)); in foldICmpAddConstant()
2807 return new ICmpInst(ICmpInst::ICMP_ULT, X, ConstantInt::get(Ty, Upper)); in foldICmpAddConstant()
2809 return new ICmpInst(ICmpInst::ICMP_UGE, X, ConstantInt::get(Ty, Lower)); in foldICmpAddConstant()
2820 return new ICmpInst(ICmpInst::ICMP_SLT, X, ConstantInt::get(Ty, -(*C2))); in foldICmpAddConstant()
2824 return new ICmpInst(ICmpInst::ICMP_SGT, X, ConstantInt::get(Ty, ~(*C2))); in foldICmpAddConstant()
2828 return new ICmpInst(ICmpInst::ICMP_ULT, X, ConstantInt::get(Ty, SMax - C)); in foldICmpAddConstant()
2832 return new ICmpInst(ICmpInst::ICMP_UGT, X, ConstantInt::get(Ty, C ^ SMax)); in foldICmpAddConstant()
2856 Builder.CreateAdd(X, ConstantInt::get(Ty, *C2 - C - 1)), in foldICmpAddConstant()
2857 ConstantInt::get(Ty, ~C)); in foldICmpAddConstant()
2863 Value *&RHS, ConstantInt *&Less, in matchThreeWayIntCompare()
2864 ConstantInt *&Equal, in matchThreeWayIntCompare()
2865 ConstantInt *&Greater) { in matchThreeWayIntCompare()
2918 ConstantInt *C) { in foldICmpSelectConstant()
2927 ConstantInt *C1LessThan, *C2Equal, *C3GreaterThan; in foldICmpSelectConstant()
2992 return new ICmpInst(Pred, X, ConstantInt::getNullValue(X->getType())); in foldICmpBitCast()
2996 return new ICmpInst(Pred, X, ConstantInt::get(X->getType(), 1)); in foldICmpBitCast()
3001 ConstantInt::getAllOnesValue(X->getType())); in foldICmpBitCast()
3009 return new ICmpInst(Pred, X, ConstantInt::getNullValue(X->getType())); in foldICmpBitCast()
3033 ConstantInt::getNullValue(NewType)); in foldICmpBitCast()
3036 ConstantInt::getAllOnesValue(NewType)); in foldICmpBitCast()
3069 return new ICmpInst(Pred, Cast, ConstantInt::getNullValue(DstType)); in foldICmpBitCast()
3081 return new ICmpInst(Pred, NewCast, ConstantInt::getNullValue(NewType)); in foldICmpBitCast()
3107 Value *NewC = ConstantInt::get(EltTy, C->trunc(EltTy->getBitWidth())); in foldICmpBitCast()
3129 if (auto *ConstRHS = dyn_cast<ConstantInt>(Cmp.getOperand(1))) in foldICmpInstWithConstant()
3253 return new ICmpInst(Pred, II->getArgOperand(0), ConstantInt::get(Ty, C)); in foldICmpEqIntrinsicWithConstant()
3259 ConstantInt::get(Ty, C.byteSwap())); in foldICmpEqIntrinsicWithConstant()
3266 ConstantInt::getNullValue(Ty)); in foldICmpEqIntrinsicWithConstant()
3280 ConstantInt::get(Ty, Mask2)); in foldICmpEqIntrinsicWithConstant()
3306 ? ConstantInt::get(Ty, C.rotr(*RotAmtC)) in foldICmpEqIntrinsicWithConstant()
3307 : ConstantInt::get(Ty, C.rotl(*RotAmtC))); in foldICmpEqIntrinsicWithConstant()
3471 ConstantInt::getAllOnesValue(Ty)); in foldICmpIntrinsicWithConstant()
3475 ConstantInt::getAllOnesValue(Ty)); in foldICmpIntrinsicWithConstant()
3484 II->getArgOperand(0), ConstantInt::get(Ty, Limit)); in foldICmpIntrinsicWithConstant()
3492 II->getArgOperand(0), ConstantInt::get(Ty, Limit)); in foldICmpIntrinsicWithConstant()
3506 ConstantInt::getNullValue(Ty)); in foldICmpIntrinsicWithConstant()
3514 ConstantInt::getNullValue(Ty)); in foldICmpIntrinsicWithConstant()
3583 return ConstantInt::get(I.getType(), *Impl); in foldSelectICmp()
3587 ConstantInt *CI = nullptr; in foldSelectICmp()
3590 CI = dyn_cast<ConstantInt>(Op1); in foldSelectICmp()
3594 CI = dyn_cast<ConstantInt>(Op2); in foldSelectICmp()
3794 Value *T0 = Builder.CreateAdd(X, ConstantInt::get(XType, AddCst)); in foldICmpWithTruncSignExtendedVal()
3796 Value *T1 = Builder.CreateICmp(DstPred, T0, ConstantInt::get(XType, ICmpCst)); in foldICmpWithTruncSignExtendedVal()
4126 Constant *Zero = ConstantInt::getNullValue(Op1->getType()); in foldICmpBinOp()
4135 Constant *Zero = ConstantInt::getNullValue(Op1->getType()); in foldICmpBinOp()
4388 return replaceInstUsesWith(I, ConstantInt::getFalse(I.getType())); in foldICmpBinOp()
4390 return replaceInstUsesWith(I, ConstantInt::getTrue(I.getType())); in foldICmpBinOp()
4440 Constant *Mask = ConstantInt::get( in foldICmpBinOp()
4606 ConstantInt *C1, *C2; in foldICmpEquality()
4677 ConstantInt *Cst1; in foldICmpEquality()
4704 return new ICmpInst(NewPred, Xor, ConstantInt::get(A->getType(), CmpVal)); in foldICmpEquality()
4769 ? new ICmpInst(ICmpInst::ICMP_ULT, CtPop, ConstantInt::get(Ty, 2)) in foldICmpEquality()
4770 : new ICmpInst(ICmpInst::ICMP_UGT, CtPop, ConstantInt::get(Ty, 1)); in foldICmpEquality()
4783 Value *Add = Builder.CreateAdd(A, ConstantInt::get(A->getType(), C)); in foldICmpEquality()
4786 Add, ConstantInt::get(A->getType(), C.shl(1))); in foldICmpEquality()
4810 Constant *Zero = ConstantInt::getNullValue(X->getType()); in foldICmpWithTrunc()
4818 Constant *MaskC = ConstantInt::get(X->getType(), C->zext(SrcBits)); in foldICmpWithTrunc()
4826 Constant *MaskC = ConstantInt::get(X->getType(), (*C + 1).zext(SrcBits)); in foldICmpWithTrunc()
4923 if (IsSignedCmp || !IsSignedExt || !isa<ConstantInt>(C)) in foldICmpWithZextOrSext()
5051 Overflow = ConstantInt::getFalse(OverflowTy); in OptimizeOverflowCheck()
5062 Overflow = ConstantInt::getTrue(OverflowTy); in OptimizeOverflowCheck()
5067 Overflow = ConstantInt::getFalse(OverflowTy); in OptimizeOverflowCheck()
5145 if (ConstantInt *CI = dyn_cast<ConstantInt>(BO->getOperand(1))) { in processUMulZExtIdiom()
5168 ConstantInt *CI; in processUMulZExtIdiom()
5186 if (ConstantInt *CI = dyn_cast<ConstantInt>(OtherVal)) { in processUMulZExtIdiom()
5198 if (ConstantInt *CI = dyn_cast<ConstantInt>(OtherVal)) { in processUMulZExtIdiom()
5209 if (ConstantInt *CI = dyn_cast<ConstantInt>(OtherVal)) { in processUMulZExtIdiom()
5221 if (ConstantInt *CI = dyn_cast<ConstantInt>(OtherVal)) { in processUMulZExtIdiom()
5262 ConstantInt *CI = cast<ConstantInt>(BO->getOperand(1)); in processUMulZExtIdiom()
5554 ConstantInt::get(Op1->getType(), *CmpC - 1)); in foldICmpUsingKnownBits()
5571 ConstantInt::get(Op1->getType(), *CmpC + 1)); in foldICmpUsingKnownBits()
5587 ConstantInt::get(Op1->getType(), *CmpC - 1)); in foldICmpUsingKnownBits()
5598 ConstantInt::get(Op1->getType(), *CmpC + 1)); in foldICmpUsingKnownBits()
5614 I, ConstantInt::getBool(I.getType(), Pred == CmpInst::ICMP_NE)); in foldICmpUsingKnownBits()
5640 auto *CmpC = ConstantInt::get(XTy, Log2C2 - Log2C1); in foldICmpUsingKnownBits()
5651 return replaceInstUsesWith(I, ConstantInt::getTrue(I.getType())); in foldICmpUsingKnownBits()
5653 return replaceInstUsesWith(I, ConstantInt::getFalse(I.getType())); in foldICmpUsingKnownBits()
5658 return replaceInstUsesWith(I, ConstantInt::getTrue(I.getType())); in foldICmpUsingKnownBits()
5660 return replaceInstUsesWith(I, ConstantInt::getFalse(I.getType())); in foldICmpUsingKnownBits()
5665 return replaceInstUsesWith(I, ConstantInt::getTrue(I.getType())); in foldICmpUsingKnownBits()
5667 return replaceInstUsesWith(I, ConstantInt::getFalse(I.getType())); in foldICmpUsingKnownBits()
5672 return replaceInstUsesWith(I, ConstantInt::getTrue(I.getType())); in foldICmpUsingKnownBits()
5674 return replaceInstUsesWith(I, ConstantInt::getFalse(I.getType())); in foldICmpUsingKnownBits()
5678 assert(!isa<ConstantInt>(Op1) && "ICMP_SGE with ConstantInt not folded!"); in foldICmpUsingKnownBits()
5680 return replaceInstUsesWith(I, ConstantInt::getTrue(I.getType())); in foldICmpUsingKnownBits()
5682 return replaceInstUsesWith(I, ConstantInt::getFalse(I.getType())); in foldICmpUsingKnownBits()
5687 assert(!isa<ConstantInt>(Op1) && "ICMP_SLE with ConstantInt not folded!"); in foldICmpUsingKnownBits()
5689 return replaceInstUsesWith(I, ConstantInt::getTrue(I.getType())); in foldICmpUsingKnownBits()
5691 return replaceInstUsesWith(I, ConstantInt::getFalse(I.getType())); in foldICmpUsingKnownBits()
5696 assert(!isa<ConstantInt>(Op1) && "ICMP_UGE with ConstantInt not folded!"); in foldICmpUsingKnownBits()
5698 return replaceInstUsesWith(I, ConstantInt::getTrue(I.getType())); in foldICmpUsingKnownBits()
5700 return replaceInstUsesWith(I, ConstantInt::getFalse(I.getType())); in foldICmpUsingKnownBits()
5705 assert(!isa<ConstantInt>(Op1) && "ICMP_ULE with ConstantInt not folded!"); in foldICmpUsingKnownBits()
5707 return replaceInstUsesWith(I, ConstantInt::getTrue(I.getType())); in foldICmpUsingKnownBits()
5709 return replaceInstUsesWith(I, ConstantInt::getFalse(I.getType())); in foldICmpUsingKnownBits()
5762 auto ConstantIsOk = [WillIncrement, IsSigned](ConstantInt *C) { in getFlippedStrictnessPredicateAndConstant()
5767 if (auto *CI = dyn_cast<ConstantInt>(C)) { in getFlippedStrictnessPredicateAndConstant()
5783 auto *CI = dyn_cast<ConstantInt>(Elt); in getFlippedStrictnessPredicateAndConstant()
5807 Constant *OneOrNegOne = ConstantInt::get(Type, WillIncrement ? 1 : -1, true); in getFlippedStrictnessPredicateAndConstant()
6298 ConstantInt::get(Op1->getType(), ~(*C))); in visitICmpInst()
6893 return replaceInstUsesWith(I, ConstantInt::getFalse(I.getType())); in visitFCmpInst()
6904 return replaceInstUsesWith(I, ConstantInt::getTrue(I.getType())); in visitFCmpInst()
6939 ConstantInt::getNullValue(IntType)); in visitFCmpInst()