Lines Matching refs:CI2

1495   ConstantInt *CI1, *CI2;  in SimplifyAndOfICmps()  local
1502 m_ConstantInt(CI2)))) in SimplifyAndOfICmps()
1515 const APInt &CI2V = CI2->getValue(); in SimplifyAndOfICmps()
1654 ConstantInt *CI1, *CI2; in SimplifyOrOfICmps() local
1661 m_ConstantInt(CI2)))) in SimplifyOrOfICmps()
1674 const APInt &CI2V = CI2->getValue(); in SimplifyOrOfICmps()
2249 ConstantInt *CI2; in SimplifyICmpInst() local
2250 if (match(LHS, m_URem(m_Value(), m_ConstantInt(CI2)))) { in SimplifyICmpInst()
2252 Upper = CI2->getValue(); in SimplifyICmpInst()
2253 } else if (match(LHS, m_SRem(m_Value(), m_ConstantInt(CI2)))) { in SimplifyICmpInst()
2255 Upper = CI2->getValue().abs(); in SimplifyICmpInst()
2257 } else if (match(LHS, m_UDiv(m_ConstantInt(CI2), m_Value()))) { in SimplifyICmpInst()
2259 Upper = CI2->getValue() + 1; in SimplifyICmpInst()
2260 } else if (match(LHS, m_UDiv(m_Value(), m_ConstantInt(CI2)))) { in SimplifyICmpInst()
2263 if (!CI2->isZero()) in SimplifyICmpInst()
2264 Upper = NegOne.udiv(CI2->getValue()) + 1; in SimplifyICmpInst()
2265 } else if (match(LHS, m_SDiv(m_ConstantInt(CI2), m_Value()))) { in SimplifyICmpInst()
2266 if (CI2->isMinSignedValue()) { in SimplifyICmpInst()
2268 Lower = CI2->getValue(); in SimplifyICmpInst()
2272 Upper = CI2->getValue().abs() + 1; in SimplifyICmpInst()
2275 } else if (match(LHS, m_SDiv(m_Value(), m_ConstantInt(CI2)))) { in SimplifyICmpInst()
2278 APInt Val = CI2->getValue(); in SimplifyICmpInst()
2294 } else if (match(LHS, m_NUWShl(m_ConstantInt(CI2), m_Value()))) { in SimplifyICmpInst()
2296 Lower = CI2->getValue(); in SimplifyICmpInst()
2298 } else if (match(LHS, m_NSWShl(m_ConstantInt(CI2), m_Value()))) { in SimplifyICmpInst()
2299 if (CI2->isNegative()) { in SimplifyICmpInst()
2301 unsigned ShiftAmount = CI2->getValue().countLeadingOnes() - 1; in SimplifyICmpInst()
2302 Lower = CI2->getValue().shl(ShiftAmount); in SimplifyICmpInst()
2303 Upper = CI2->getValue() + 1; in SimplifyICmpInst()
2306 unsigned ShiftAmount = CI2->getValue().countLeadingZeros() - 1; in SimplifyICmpInst()
2307 Lower = CI2->getValue(); in SimplifyICmpInst()
2308 Upper = CI2->getValue().shl(ShiftAmount) + 1; in SimplifyICmpInst()
2310 } else if (match(LHS, m_LShr(m_Value(), m_ConstantInt(CI2)))) { in SimplifyICmpInst()
2313 if (CI2->getValue().ult(Width)) in SimplifyICmpInst()
2314 Upper = NegOne.lshr(CI2->getValue()) + 1; in SimplifyICmpInst()
2315 } else if (match(LHS, m_LShr(m_ConstantInt(CI2), m_Value()))) { in SimplifyICmpInst()
2318 if (!CI2->isZero() && cast<BinaryOperator>(LHS)->isExact()) in SimplifyICmpInst()
2319 ShiftAmount = CI2->getValue().countTrailingZeros(); in SimplifyICmpInst()
2320 Lower = CI2->getValue().lshr(ShiftAmount); in SimplifyICmpInst()
2321 Upper = CI2->getValue() + 1; in SimplifyICmpInst()
2322 } else if (match(LHS, m_AShr(m_Value(), m_ConstantInt(CI2)))) { in SimplifyICmpInst()
2326 if (CI2->getValue().ult(Width)) { in SimplifyICmpInst()
2327 Lower = IntMin.ashr(CI2->getValue()); in SimplifyICmpInst()
2328 Upper = IntMax.ashr(CI2->getValue()) + 1; in SimplifyICmpInst()
2330 } else if (match(LHS, m_AShr(m_ConstantInt(CI2), m_Value()))) { in SimplifyICmpInst()
2332 if (!CI2->isZero() && cast<BinaryOperator>(LHS)->isExact()) in SimplifyICmpInst()
2333 ShiftAmount = CI2->getValue().countTrailingZeros(); in SimplifyICmpInst()
2334 if (CI2->isNegative()) { in SimplifyICmpInst()
2336 Lower = CI2->getValue(); in SimplifyICmpInst()
2337 Upper = CI2->getValue().ashr(ShiftAmount) + 1; in SimplifyICmpInst()
2340 Lower = CI2->getValue().ashr(ShiftAmount); in SimplifyICmpInst()
2341 Upper = CI2->getValue() + 1; in SimplifyICmpInst()
2343 } else if (match(LHS, m_Or(m_Value(), m_ConstantInt(CI2)))) { in SimplifyICmpInst()
2345 Lower = CI2->getValue(); in SimplifyICmpInst()
2346 } else if (match(LHS, m_And(m_Value(), m_ConstantInt(CI2)))) { in SimplifyICmpInst()
2348 Upper = CI2->getValue() + 1; in SimplifyICmpInst()