Home
last modified time | relevance | path

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

/external/swiftshader/third_party/LLVM/lib/Transforms/InstCombine/
DInstCombineSimplifyDemanded.cpp140 APInt LHSKnownZero(BitWidth, 0), LHSKnownOne(BitWidth, 0); in SimplifyDemandedUseBits() local
162 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()
186 LHSKnownZero, LHSKnownOne, Depth+1); in SimplifyDemandedUseBits()
194 if ((DemandedMask & ~RHSKnownOne & LHSKnownZero) == in SimplifyDemandedUseBits()
203 if ((DemandedMask & (~LHSKnownZero) & RHSKnownOne) == in SimplifyDemandedUseBits()
204 (DemandedMask & (~LHSKnownZero))) in SimplifyDemandedUseBits()
229 LHSKnownZero, LHSKnownOne, Depth+1)) in SimplifyDemandedUseBits()
[all …]
DInstCombineAddSub.cpp194 APInt LHSKnownZero(IT->getBitWidth(), 0); in visitAdd() local
195 ComputeMaskedBits(LHS, Mask, LHSKnownZero, LHSKnownOne); in visitAdd()
196 if (LHSKnownZero != 0) { in visitAdd()
202 if ((LHSKnownZero|RHSKnownZero).isAllOnesValue()) in visitAdd()
DInstCombineCalls.cpp396 APInt LHSKnownZero(BitWidth, 0); in visitCallInst() local
398 ComputeMaskedBits(LHS, Mask, LHSKnownZero, LHSKnownOne); in visitCallInst()
400 bool LHSKnownPositive = LHSKnownZero[BitWidth - 1]; in visitCallInst()
491 APInt LHSKnownZero(BitWidth, 0); in visitCallInst() local
493 ComputeMaskedBits(LHS, Mask, LHSKnownZero, LHSKnownOne); in visitCallInst()
499 APInt LHSMax = ~LHSKnownZero; in visitCallInst()
/external/llvm/lib/Transforms/InstCombine/
DInstCombineSimplifyDemanded.cpp141 APInt LHSKnownZero(BitWidth, 0), LHSKnownOne(BitWidth, 0); in SimplifyDemandedUseBits() local
162 computeKnownBits(I->getOperand(0), LHSKnownZero, LHSKnownOne, Depth + 1, in SimplifyDemandedUseBits()
168 if ((DemandedMask & ~LHSKnownZero & RHSKnownOne) == in SimplifyDemandedUseBits()
169 (DemandedMask & ~LHSKnownZero)) in SimplifyDemandedUseBits()
176 if ((DemandedMask & (RHSKnownZero|LHSKnownZero)) == DemandedMask) in SimplifyDemandedUseBits()
186 computeKnownBits(I->getOperand(0), LHSKnownZero, LHSKnownOne, Depth + 1, in SimplifyDemandedUseBits()
195 if ((DemandedMask & ~RHSKnownOne & LHSKnownZero) == in SimplifyDemandedUseBits()
204 if ((DemandedMask & (~LHSKnownZero) & RHSKnownOne) == in SimplifyDemandedUseBits()
205 (DemandedMask & (~LHSKnownZero))) in SimplifyDemandedUseBits()
213 computeKnownBits(I->getOperand(0), LHSKnownZero, LHSKnownOne, Depth + 1, in SimplifyDemandedUseBits()
[all …]
DInstCombineAddSub.cpp897 APInt LHSKnownZero(BitWidth, 0); in WillNotOverflowSignedAdd() local
899 computeKnownBits(LHS, LHSKnownZero, LHSKnownOne, 0, &CxtI); in WillNotOverflowSignedAdd()
908 (LHSKnownZero[BitWidth - 1] && RHSKnownOne[BitWidth - 1])) in WillNotOverflowSignedAdd()
912 if (checkRippleForAdd(LHSKnownZero, RHSKnownZero)) in WillNotOverflowSignedAdd()
914 if (checkRippleForAdd(RHSKnownZero, LHSKnownZero)) in WillNotOverflowSignedAdd()
934 APInt LHSKnownZero(BitWidth, 0); in WillNotOverflowSignedSub() local
936 computeKnownBits(LHS, LHSKnownZero, LHSKnownOne, 0, &CxtI); in WillNotOverflowSignedSub()
945 (LHSKnownZero[BitWidth - 1] && RHSKnownZero[BitWidth - 1])) in WillNotOverflowSignedSub()
1092 APInt LHSKnownZero(IT->getBitWidth(), 0); in visitAdd() local
1093 computeKnownBits(XorLHS, LHSKnownZero, LHSKnownOne, 0, &I); in visitAdd()
[all …]
/external/swiftshader/third_party/LLVM/lib/Analysis/
DValueTracking.cpp409 APInt LHSKnownZero(BitWidth, 0), LHSKnownOne(BitWidth, 0); in ComputeMaskedBits() local
412 ComputeMaskedBits(I->getOperand(0), Mask2, LHSKnownZero, LHSKnownOne, TD, in ComputeMaskedBits()
414 assert((LHSKnownZero & LHSKnownOne) == 0 && in ComputeMaskedBits()
416 unsigned LHSKnownZeroOut = LHSKnownZero.countTrailingOnes(); in ComputeMaskedBits()
439 KnownZero |= LHSKnownZero & Mask; in ComputeMaskedBits()
449 if (LHSKnownZero.isNegative() && KnownZero2.isNegative()) in ComputeMaskedBits()
456 if (LHSKnownZero.isNegative() && KnownOne2.isNegative()) in ComputeMaskedBits()
501 APInt LHSKnownZero(BitWidth, 0), LHSKnownOne(BitWidth, 0); in ComputeMaskedBits() local
502 ComputeMaskedBits(I->getOperand(0), Mask2, LHSKnownZero, LHSKnownOne, TD, in ComputeMaskedBits()
505 if (LHSKnownZero.isNegative()) in ComputeMaskedBits()
[all …]
/external/llvm/lib/Analysis/
DValueTracking.cpp141 APInt LHSKnownZero(IT->getBitWidth(), 0), LHSKnownOne(IT->getBitWidth(), 0); in haveNoCommonBitsSet() local
143 computeKnownBits(LHS, LHSKnownZero, LHSKnownOne, DL, 0, AC, CxtI, DT); in haveNoCommonBitsSet()
145 return (LHSKnownZero | RHSKnownZero).isAllOnesValue(); in haveNoCommonBitsSet()
267 APInt LHSKnownZero(BitWidth, 0), LHSKnownOne(BitWidth, 0); in computeKnownBitsAddSub() local
268 computeKnownBits(Op0, LHSKnownZero, LHSKnownOne, Depth + 1, Q); in computeKnownBitsAddSub()
279 APInt PossibleSumZero = ~LHSKnownZero + ~KnownZero2 + CarryIn; in computeKnownBitsAddSub()
283 APInt CarryKnownZero = ~(PossibleSumZero ^ LHSKnownZero ^ KnownZero2); in computeKnownBitsAddSub()
287 APInt LHSKnown = LHSKnownZero | LHSKnownOne; in computeKnownBitsAddSub()
304 if (LHSKnownZero.isNegative() && KnownZero2.isNegative()) in computeKnownBitsAddSub()
1112 APInt LHSKnownZero(BitWidth, 0), LHSKnownOne(BitWidth, 0); in computeKnownBitsFromOperator() local
[all …]
DInstructionSimplify.cpp3124 APInt LHSKnownZero(BitWidth, 0); in SimplifyICmpInst() local
3126 computeKnownBits(LHS, LHSKnownZero, LHSKnownOne, Q.DL, /*Depth=*/0, Q.AC, in SimplifyICmpInst()
3129 if (((LHSKnownZero & RHSVal) != 0) || ((LHSKnownOne & ~RHSVal) != 0)) in SimplifyICmpInst()
/external/swiftshader/third_party/LLVM/lib/Target/PowerPC/
DPPCISelLowering.cpp822 APInt LHSKnownZero, LHSKnownOne; in SelectAddressRegReg() local
827 LHSKnownZero, LHSKnownOne); in SelectAddressRegReg()
829 if (LHSKnownZero.getBoolValue()) { in SelectAddressRegReg()
836 if (~(LHSKnownZero | RHSKnownZero) == 0) { in SelectAddressRegReg()
886 APInt LHSKnownZero, LHSKnownOne; in SelectAddressRegImm() local
890 LHSKnownZero, LHSKnownOne); in SelectAddressRegImm()
892 if ((LHSKnownZero.getZExtValue()|~(uint64_t)imm) == ~0ULL) { in SelectAddressRegImm()
1002 APInt LHSKnownZero, LHSKnownOne; in SelectAddressRegImmShift() local
1006 LHSKnownZero, LHSKnownOne); in SelectAddressRegImmShift()
1007 if ((LHSKnownZero.getZExtValue()|~(uint64_t)imm) == ~0ULL) { in SelectAddressRegImmShift()
/external/llvm/lib/Target/PowerPC/
DPPCISelDAGToDAG.cpp2687 APInt LHSKnownZero, LHSKnownOne; in Select() local
2688 CurDAG->computeKnownBits(N->getOperand(0), LHSKnownZero, LHSKnownOne); in Select()
2692 if ((LHSKnownZero.getZExtValue()|~(uint64_t)Imm) == ~0ULL) { in Select()
DPPCISelLowering.cpp1781 APInt LHSKnownZero, LHSKnownOne; in SelectAddressRegReg() local
1784 LHSKnownZero, LHSKnownOne); in SelectAddressRegReg()
1786 if (LHSKnownZero.getBoolValue()) { in SelectAddressRegReg()
1791 if (~(LHSKnownZero | RHSKnownZero) == 0) { in SelectAddressRegReg()
1887 APInt LHSKnownZero, LHSKnownOne; in SelectAddressRegImm() local
1888 DAG.computeKnownBits(N.getOperand(0), LHSKnownZero, LHSKnownOne); in SelectAddressRegImm()
1890 if ((LHSKnownZero.getZExtValue()|~(uint64_t)imm) == ~0ULL) { in SelectAddressRegImm()