Searched refs:XorRHS (Results 1 – 4 of 4) sorted by relevance
1061 Value *XorLHS = nullptr; ConstantInt *XorRHS = nullptr; in visitAdd() local1062 if (match(LHS, m_Xor(m_Value(XorLHS), m_ConstantInt(XorRHS)))) { in visitAdd()1068 if (XorRHS->getValue() == -RHSVal) { in visitAdd()1071 else if (XorRHS->getValue().isPowerOf2()) in visitAdd()1072 ExtendAmt = TySizeBits - XorRHS->getValue().logBase2() - 1; in visitAdd()1089 if (LHS->hasOneUse() && (XorRHS->getValue()+1).isPowerOf2()) { in visitAdd()1094 if ((XorRHS->getValue() | LHSKnownZero).isAllOnesValue()) in visitAdd()1095 return BinaryOperator::CreateSub(ConstantExpr::getAdd(XorRHS, CI), in visitAdd()1100 if (XorRHS->getValue().isSignBit()) in visitAdd()1102 ConstantExpr::getXor(XorRHS, CI)); in visitAdd()
388 ConstantInt *XorRHS = cast<ConstantInt>(I->getOperand(1)); in SimplifyDemandedUseBits() local397 ConstantInt::get(I->getType(), NewMask & XorRHS->getValue()); in SimplifyDemandedUseBits()
114 Value *XorLHS = 0; ConstantInt *XorRHS = 0; in visitAdd() local115 if (match(LHS, m_Xor(m_Value(XorLHS), m_ConstantInt(XorRHS)))) { in visitAdd()121 if (XorRHS->getValue() == -RHSVal) { in visitAdd()124 else if (XorRHS->getValue().isPowerOf2()) in visitAdd()125 ExtendAmt = TySizeBits - XorRHS->getValue().logBase2() - 1; in visitAdd()
348 ConstantInt *XorRHS = cast<ConstantInt>(I->getOperand(1)); in SimplifyDemandedUseBits() local357 ConstantInt::get(I->getType(), NewMask & XorRHS->getValue()); in SimplifyDemandedUseBits()