reference, declaration → definition definition → references, declarations, derived classes, virtual overrides reference to multiple definitions → definitions unreferenced |
2171 C.isNullValue()) 2176 return foldICmpShrConstConst(Cmp, Shr->getOperand(1), C, *ShiftVal); 2184 unsigned TypeBits = C.getBitWidth(); 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() && 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)); 2250 return new ICmpInst(Pred, And, ConstantInt::get(ShrTy, C << ShAmtVal));