Home | History | Annotate | Download | only in InstCombine

Lines Matching refs:RHSV

718         Value *RHSV = GEPRHS->getOperand(DiffOperand);
720 return new ICmpInst(ICmpInst::getSignedPredicate(Cond), LHSV, RHSV);
1054 const APInt &RHSV = RHS->getValue();
1081 if ((ICI.getPredicate() == ICmpInst::ICMP_SLT && RHSV == 0) ||
1082 (ICI.getPredicate() == ICmpInst::ICMP_SGT && RHSV.isAllOnesValue())) {
1115 Builder->getInt(RHSV ^ SignBit));
1126 Builder->getInt(RHSV ^ NotSignBit));
1133 XorCST->getValue() == ~RHSV && (RHSV + 1).isPowerOf2())
1139 XorCST->getValue() == -RHSV && RHSV.isPowerOf2())
1157 (!AndCST->isNegative() && RHSV.isNonNegative())) {
1173 if (ICI.isEquality() && RHSV.getActiveBits() <= Ty->getBitWidth()) {
1249 if (Shift && Shift->hasOneUse() && RHSV == 0 &&
1269 // Replace ((X & AndCST) > RHSV) with ((X & AndCST) != 0), if any
1270 // bit set in (X & AndCST) will produce a result greater than RHSV.
1274 APInt::getOneBitSet(AndCST->getBitWidth(), NTZ).ugt(RHSV))
1296 if (ICI.isEquality() && RHS == LHSI->getOperand(1) && (-RHSV).isPowerOf2())
1342 uint32_t TypeBits = RHSV.getBitWidth();
1348 bool RHSVIsPowerOf2 = RHSV.isPowerOf2();
1361 unsigned RHSLog2 = RHSV.logBase2();
1381 if (RHSV.isAllOnesValue()) {
1391 } else if (!RHSV) {
1407 Pred, X, ConstantInt::get(RHS->getType(), RHSV.logBase2()));
1443 if (cast<BinaryOperator>(LHSI)->hasNoSignedWrap() && RHSV == 0)
1491 Amt != 0 && RHSV.countTrailingZeros() >= Amt) {
1516 if (RHSV.isMinValue())
1545 RHSV.isPowerOf2() && (LHSV & (RHSV - 1)) == (RHSV - 1))
1547 Builder->CreateOr(LHSI->getOperand(1), RHSV - 1),
1554 (RHSV + 1).isPowerOf2() && (LHSV & RHSV) == RHSV)
1556 Builder->CreateOr(LHSI->getOperand(1), RHSV), LHSC);
1567 ConstantRange CR = ICI.makeConstantRange(ICI.getPredicate(), RHSV)
1592 RHSV.isPowerOf2() && (LHSV & (RHSV - 1)) == 0)
1594 Builder->CreateAnd(LHSI->getOperand(0), -RHSV),
1601 (RHSV + 1).isPowerOf2() && (LHSV & RHSV) == 0)
1603 Builder->CreateAnd(LHSI->getOperand(0), ~RHSV),
1619 if (RHSV == 0 && isa<ConstantInt>(BO->getOperand(1)) &&BO->hasOneUse()){
1636 } else if (RHSV == 0) {
1658 } else if (RHSV == 0) {
1670 } else if (RHSV == 0) {
1690 if ((RHSV & ~BOC->getValue()) != 0)
1694 if (RHS == BOC && RHSV.isPowerOf2())
1713 if (RHSV == 0 && isHighOnes(BOC)) {
1723 if (RHSV == 0 && BO->hasNoSignedWrap()) {
1742 ICI.setOperand(1, Builder->getInt(RHSV.byteSwap()));
1747 if (RHSV == RHS->getType()->getBitWidth()) {