Home
last modified time | relevance | path

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

/external/llvm/lib/Transforms/InstCombine/
DInstCombineAddSub.cpp1061 Value *XorLHS = nullptr; ConstantInt *XorRHS = nullptr; in visitAdd() local
1062 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()
DInstCombineSimplifyDemanded.cpp388 ConstantInt *XorRHS = cast<ConstantInt>(I->getOperand(1)); in SimplifyDemandedUseBits() local
397 ConstantInt::get(I->getType(), NewMask & XorRHS->getValue()); in SimplifyDemandedUseBits()
/external/swiftshader/third_party/LLVM/lib/Transforms/InstCombine/
DInstCombineAddSub.cpp114 Value *XorLHS = 0; ConstantInt *XorRHS = 0; in visitAdd() local
115 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()
DInstCombineSimplifyDemanded.cpp348 ConstantInt *XorRHS = cast<ConstantInt>(I->getOperand(1)); in SimplifyDemandedUseBits() local
357 ConstantInt::get(I->getType(), NewMask & XorRHS->getValue()); in SimplifyDemandedUseBits()