Lines Matching defs:RHSC
1471 const APFloat *LHSC, *RHSC;
1475 match(RHS1, m_APFloatAllowPoison(RHSC)) &&
1476 LHSC->bitwiseIsEqual(neg(*RHSC))) {
1489 std::swap(LHSC, RHSC);
2229 const APInt *RHSC;
2232 !match(I.getOperand(1), m_APInt(RHSC))))
2253 ? RHSC->byteSwap()
2254 : RHSC->reverseBits()));
3291 const APInt *LHSC = nullptr, *RHSC = nullptr;
3293 match(RHS1, m_APInt(RHSC));
3402 if (!LHSC || !RHSC)
3418 SmallC = RHSC;
3423 BigC = RHSC;
3448 isSignBitCheck(PredR, *RHSC, TrueIfSignedR) &&
4727 const APInt *RHSC;
4728 if (match(Op1, m_APInt(RHSC))) {
4732 if (RHSC->isSignMask() && match(Op0, m_Sub(m_APInt(C), m_Value(X))))
4733 return BinaryOperator::CreateSub(ConstantInt::get(Ty, *C + *RHSC), X);
4736 if (RHSC->isSignMask() && match(Op0, m_Add(m_Value(X), m_APInt(C))))
4737 return BinaryOperator::CreateAdd(X, ConstantInt::get(Ty, *C + *RHSC));
4739 // (X | C) ^ RHSC --> X ^ (C ^ RHSC) iff X & C == 0
4742 return BinaryOperator::CreateXor(X, ConstantInt::get(Ty, *C ^ *RHSC));
4748 if (II && II->hasOneUse() && *RHSC == Ty->getScalarSizeInBits() - 1) {
4759 // If RHSC is inverting the remaining bits of shifted X,
4761 // (X << C) ^ RHSC --> ~X << C
4763 *RHSC == APInt::getAllOnes(Ty->getScalarSizeInBits()).shl(*C)) {
4767 // (X >>u C) ^ RHSC --> ~X >>u C
4769 *RHSC == APInt::getAllOnes(Ty->getScalarSizeInBits()).lshr(*C)) {