Home
last modified time | relevance | path

Searched refs:LHSKnownZero (Results 1 – 7 of 7) sorted by relevance

/external/llvm/lib/Transforms/InstCombine/
DInstCombineSimplifyDemanded.cpp142 APInt LHSKnownZero(BitWidth, 0), LHSKnownOne(BitWidth, 0); in SimplifyDemandedUseBits() local
162 computeKnownBits(I->getOperand(0), LHSKnownZero, LHSKnownOne, Depth+1); in SimplifyDemandedUseBits()
167 if ((DemandedMask & ~LHSKnownZero & RHSKnownOne) == in SimplifyDemandedUseBits()
168 (DemandedMask & ~LHSKnownZero)) in SimplifyDemandedUseBits()
175 if ((DemandedMask & (RHSKnownZero|LHSKnownZero)) == DemandedMask) in SimplifyDemandedUseBits()
184 computeKnownBits(I->getOperand(0), LHSKnownZero, LHSKnownOne, Depth+1); in SimplifyDemandedUseBits()
192 if ((DemandedMask & ~RHSKnownOne & LHSKnownZero) == in SimplifyDemandedUseBits()
201 if ((DemandedMask & (~LHSKnownZero) & RHSKnownOne) == in SimplifyDemandedUseBits()
202 (DemandedMask & (~LHSKnownZero))) in SimplifyDemandedUseBits()
209 computeKnownBits(I->getOperand(0), LHSKnownZero, LHSKnownOne, Depth+1); in SimplifyDemandedUseBits()
[all …]
DInstCombineAddSub.cpp921 APInt LHSKnownZero(BitWidth, 0); in WillNotOverflowSignedAdd() local
923 computeKnownBits(LHS, LHSKnownZero, LHSKnownOne); in WillNotOverflowSignedAdd()
932 (LHSKnownZero[BitWidth - 1] && RHSKnownOne[BitWidth - 1])) in WillNotOverflowSignedAdd()
936 if (checkRippleForAdd(LHSKnownZero, RHSKnownZero)) in WillNotOverflowSignedAdd()
938 if (checkRippleForAdd(RHSKnownZero, LHSKnownZero)) in WillNotOverflowSignedAdd()
1082 APInt LHSKnownZero(IT->getBitWidth(), 0); in visitAdd() local
1083 computeKnownBits(XorLHS, LHSKnownZero, LHSKnownOne); in visitAdd()
1084 if ((XorRHS->getValue() | LHSKnownZero).isAllOnesValue()) in visitAdd()
1135 APInt LHSKnownZero(IT->getBitWidth(), 0); in visitAdd() local
1136 computeKnownBits(LHS, LHSKnownZero, LHSKnownOne); in visitAdd()
[all …]
DInstCombineCalls.cpp356 APInt LHSKnownZero(BitWidth, 0); in visitCallInst() local
358 computeKnownBits(LHS, LHSKnownZero, LHSKnownOne); in visitCallInst()
360 bool LHSKnownPositive = LHSKnownZero[BitWidth - 1]; in visitCallInst()
465 APInt LHSKnownZero(BitWidth, 0); in visitCallInst() local
467 computeKnownBits(LHS, LHSKnownZero, LHSKnownOne); in visitCallInst()
473 APInt LHSMax = ~LHSKnownZero; in visitCallInst()
/external/llvm/lib/Transforms/Scalar/
DSeparateConstOffsetFromGEP.cpp592 APInt LHSKnownOne, LHSKnownZero, RHSKnownOne, RHSKnownZero; in NoCommonBits() local
593 ComputeKnownBits(LHS, LHSKnownOne, LHSKnownZero); in NoCommonBits()
595 return (LHSKnownZero | RHSKnownZero).isAllOnesValue(); in NoCommonBits()
/external/llvm/lib/Analysis/
DValueTracking.cpp82 APInt LHSKnownZero(BitWidth, 0), LHSKnownOne(BitWidth, 0); in computeKnownBitsAddSub() local
83 llvm::computeKnownBits(Op0, LHSKnownZero, LHSKnownOne, TD, Depth+1); in computeKnownBitsAddSub()
84 unsigned LHSKnownZeroOut = LHSKnownZero.countTrailingOnes(); in computeKnownBitsAddSub()
105 KnownZero |= LHSKnownZero & Mask; in computeKnownBitsAddSub()
114 if (LHSKnownZero.isNegative() && KnownZero2.isNegative()) in computeKnownBitsAddSub()
121 if (LHSKnownZero.isNegative() && KnownOne2.isNegative()) in computeKnownBitsAddSub()
562 APInt LHSKnownZero(BitWidth, 0), LHSKnownOne(BitWidth, 0); in computeKnownBits() local
563 computeKnownBits(I->getOperand(0), LHSKnownZero, LHSKnownOne, TD, in computeKnownBits()
566 if (LHSKnownZero.isNegative()) in computeKnownBits()
DInstructionSimplify.cpp2182 APInt LHSKnownZero(BitWidth, 0); in SimplifyICmpInst() local
2184 computeKnownBits(LHS, LHSKnownZero, LHSKnownOne); in SimplifyICmpInst()
2189 ((LHSKnownZero & RHSKnownOne) != 0)) in SimplifyICmpInst()
/external/llvm/lib/Target/PowerPC/
DPPCISelLowering.cpp1222 APInt LHSKnownZero, LHSKnownOne; in SelectAddressRegReg() local
1225 LHSKnownZero, LHSKnownOne); in SelectAddressRegReg()
1227 if (LHSKnownZero.getBoolValue()) { in SelectAddressRegReg()
1232 if (~(LHSKnownZero | RHSKnownZero) == 0) { in SelectAddressRegReg()
1328 APInt LHSKnownZero, LHSKnownOne; in SelectAddressRegImm() local
1329 DAG.computeKnownBits(N.getOperand(0), LHSKnownZero, LHSKnownOne); in SelectAddressRegImm()
1331 if ((LHSKnownZero.getZExtValue()|~(uint64_t)imm) == ~0ULL) { in SelectAddressRegImm()