Lines Matching refs:RHSV
714 Value *RHSV = GEPRHS->getOperand(DiffOperand); in FoldGEPICmp() local
716 return new ICmpInst(ICmpInst::getSignedPredicate(Cond), LHSV, RHSV); in FoldGEPICmp()
1216 const APInt &RHSV = RHS->getValue(); in visitICmpInstWithInstAndIntCst() local
1220 if (RHS->isOne() && RHSV.getBitWidth() > 1) { in visitICmpInstWithInstAndIntCst()
1251 if ((ICI.getPredicate() == ICmpInst::ICMP_SLT && RHSV == 0) || in visitICmpInstWithInstAndIntCst()
1252 (ICI.getPredicate() == ICmpInst::ICMP_SGT && RHSV.isAllOnesValue())) { in visitICmpInstWithInstAndIntCst()
1285 Builder->getInt(RHSV ^ SignBit)); in visitICmpInstWithInstAndIntCst()
1296 Builder->getInt(RHSV ^ NotSignBit)); in visitICmpInstWithInstAndIntCst()
1303 XorCst->getValue() == ~RHSV && (RHSV + 1).isPowerOf2()) in visitICmpInstWithInstAndIntCst()
1309 XorCst->getValue() == -RHSV && RHSV.isPowerOf2()) in visitICmpInstWithInstAndIntCst()
1327 (!AndCst->isNegative() && RHSV.isNonNegative())) { in visitICmpInstWithInstAndIntCst()
1343 if (ICI.isEquality() && RHSV.getActiveBits() <= Ty->getBitWidth()) { in visitICmpInstWithInstAndIntCst()
1436 if (Shift && Shift->hasOneUse() && RHSV == 0 && in visitICmpInstWithInstAndIntCst()
1462 if (!ICI.isSigned() && RHSV == 0) { in visitICmpInstWithInstAndIntCst()
1503 APInt::getOneBitSet(AndCst->getBitWidth(), NTZ).ugt(RHSV)) in visitICmpInstWithInstAndIntCst()
1525 if (ICI.isEquality() && RHS == LHSI->getOperand(1) && (-RHSV).isPowerOf2()) in visitICmpInstWithInstAndIntCst()
1597 uint32_t TypeBits = RHSV.getBitWidth(); in visitICmpInstWithInstAndIntCst()
1603 bool RHSVIsPowerOf2 = RHSV.isPowerOf2(); in visitICmpInstWithInstAndIntCst()
1616 unsigned RHSLog2 = RHSV.logBase2(); in visitICmpInstWithInstAndIntCst()
1630 if (RHSV.isAllOnesValue()) { in visitICmpInstWithInstAndIntCst()
1640 } else if (!RHSV) { in visitICmpInstWithInstAndIntCst()
1656 Pred, X, ConstantInt::get(RHS->getType(), RHSV.logBase2())); in visitICmpInstWithInstAndIntCst()
1688 if (cast<BinaryOperator>(LHSI)->hasNoSignedWrap() && RHSV == 0) in visitICmpInstWithInstAndIntCst()
1736 Amt != 0 && RHSV.countTrailingZeros() >= Amt) { in visitICmpInstWithInstAndIntCst()
1761 if (RHSV.isMinValue()) in visitICmpInstWithInstAndIntCst()
1790 RHSV.isPowerOf2() && (LHSV & (RHSV - 1)) == (RHSV - 1)) in visitICmpInstWithInstAndIntCst()
1792 Builder->CreateOr(LHSI->getOperand(1), RHSV - 1), in visitICmpInstWithInstAndIntCst()
1799 (RHSV + 1).isPowerOf2() && (LHSV & RHSV) == RHSV) in visitICmpInstWithInstAndIntCst()
1801 Builder->CreateOr(LHSI->getOperand(1), RHSV), LHSC); in visitICmpInstWithInstAndIntCst()
1812 ConstantRange CR = ICI.makeConstantRange(ICI.getPredicate(), RHSV) in visitICmpInstWithInstAndIntCst()
1837 RHSV.isPowerOf2() && (LHSV & (RHSV - 1)) == 0) in visitICmpInstWithInstAndIntCst()
1839 Builder->CreateAnd(LHSI->getOperand(0), -RHSV), in visitICmpInstWithInstAndIntCst()
1846 (RHSV + 1).isPowerOf2() && (LHSV & RHSV) == 0) in visitICmpInstWithInstAndIntCst()
1848 Builder->CreateAnd(LHSI->getOperand(0), ~RHSV), in visitICmpInstWithInstAndIntCst()
1864 if (RHSV == 0 && isa<ConstantInt>(BO->getOperand(1)) &&BO->hasOneUse()){ in visitICmpInstWithInstAndIntCst()
1881 } else if (RHSV == 0) { in visitICmpInstWithInstAndIntCst()
1903 } else if (RHSV == 0) { in visitICmpInstWithInstAndIntCst()
1915 } else if (RHSV == 0) { in visitICmpInstWithInstAndIntCst()
1935 if ((RHSV & ~BOC->getValue()) != 0) in visitICmpInstWithInstAndIntCst()
1939 if (RHS == BOC && RHSV.isPowerOf2()) in visitICmpInstWithInstAndIntCst()
1958 if (RHSV == 0 && isHighOnes(BOC)) { in visitICmpInstWithInstAndIntCst()
1968 if (RHSV == 0 && BO->hasNoSignedWrap()) { in visitICmpInstWithInstAndIntCst()
1987 ICI.setOperand(1, Builder->getInt(RHSV.byteSwap())); in visitICmpInstWithInstAndIntCst()
1992 if (RHSV == RHS->getType()->getBitWidth()) { in visitICmpInstWithInstAndIntCst()