reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

lib/Transforms/InstCombine/InstCombineCompares.cpp
 2186   if (ShAmtVal >= TypeBits || ShAmtVal == 0)
 2186   if (ShAmtVal >= TypeBits || ShAmtVal == 0)
 2200       APInt ShiftedC = C.shl(ShAmtVal);
 2201       if (ShiftedC.ashr(ShAmtVal) == C)
 2206       APInt ShiftedC = (C + 1).shl(ShAmtVal) - 1;
 2207       if (!C.isMaxSignedValue() && !(C + 1).shl(ShAmtVal).isMinSignedValue() &&
 2208           (ShiftedC + 1).ashr(ShAmtVal) == (C + 1))
 2215       APInt ShiftedC = C.shl(ShAmtVal);
 2216       if (ShiftedC.lshr(ShAmtVal) == C)
 2221       APInt ShiftedC = (C + 1).shl(ShAmtVal) - 1;
 2222       if ((ShiftedC + 1).lshr(ShAmtVal) == (C + 1))
 2235   assert(((IsAShr && C.shl(ShAmtVal).ashr(ShAmtVal) == C) ||
 2235   assert(((IsAShr && C.shl(ShAmtVal).ashr(ShAmtVal) == C) ||
 2236           (!IsAShr && C.shl(ShAmtVal).lshr(ShAmtVal) == C)) &&
 2236           (!IsAShr && C.shl(ShAmtVal).lshr(ShAmtVal) == C)) &&
 2242     return new ICmpInst(Pred, X, ConstantInt::get(ShrTy, C << ShAmtVal));
 2247     APInt Val(APInt::getHighBitsSet(TypeBits, TypeBits - ShAmtVal));
 2250     return new ICmpInst(Pred, And, ConstantInt::get(ShrTy, C << ShAmtVal));