Home
last modified time | relevance | path

Searched refs:XorRHS (Results 1 – 2 of 2) sorted by relevance

/external/llvm/lib/Transforms/InstCombine/
DInstCombineAddSub.cpp1081 Value *XorLHS = nullptr; ConstantInt *XorRHS = nullptr; in visitAdd() local
1082 if (match(LHS, m_Xor(m_Value(XorLHS), m_ConstantInt(XorRHS)))) { in visitAdd()
1088 if (XorRHS->getValue() == -RHSVal) { in visitAdd()
1091 else if (XorRHS->getValue().isPowerOf2()) in visitAdd()
1092 ExtendAmt = TySizeBits - XorRHS->getValue().logBase2() - 1; in visitAdd()
1109 if (LHS->hasOneUse() && (XorRHS->getValue()+1).isPowerOf2()) { in visitAdd()
1114 if ((XorRHS->getValue() | LHSKnownZero).isAllOnesValue()) in visitAdd()
1115 return BinaryOperator::CreateSub(ConstantExpr::getAdd(XorRHS, CI), in visitAdd()
1120 if (XorRHS->getValue().isSignBit()) in visitAdd()
1122 ConstantExpr::getXor(XorRHS, CI)); in visitAdd()
DInstCombineSimplifyDemanded.cpp401 ConstantInt *XorRHS = cast<ConstantInt>(I->getOperand(1)); in SimplifyDemandedUseBits() local
410 ConstantInt::get(I->getType(), NewMask & XorRHS->getValue()); in SimplifyDemandedUseBits()