Home
last modified time | relevance | path

Searched refs:LHSKnown (Results 1 – 9 of 9) sorted by relevance

/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/InstCombine/
DInstCombineSimplifyDemanded.cpp154 KnownBits LHSKnown(BitWidth), RHSKnown(BitWidth); in SimplifyDemandedUseBits() local
170 SimplifyDemandedBits(I, 0, DemandedMask & ~RHSKnown.Zero, LHSKnown, in SimplifyDemandedUseBits()
174 assert(!LHSKnown.hasConflict() && "Bits known to be one AND zero?"); in SimplifyDemandedUseBits()
177 APInt IKnownZero = RHSKnown.Zero | LHSKnown.Zero; in SimplifyDemandedUseBits()
179 APInt IKnownOne = RHSKnown.One & LHSKnown.One; in SimplifyDemandedUseBits()
188 if (DemandedMask.isSubsetOf(LHSKnown.Zero | RHSKnown.One)) in SimplifyDemandedUseBits()
190 if (DemandedMask.isSubsetOf(RHSKnown.Zero | LHSKnown.One)) in SimplifyDemandedUseBits()
194 if (ShrinkDemandedConstant(I, 1, DemandedMask & ~LHSKnown.Zero)) in SimplifyDemandedUseBits()
204 SimplifyDemandedBits(I, 0, DemandedMask & ~RHSKnown.One, LHSKnown, in SimplifyDemandedUseBits()
208 assert(!LHSKnown.hasConflict() && "Bits known to be one AND zero?"); in SimplifyDemandedUseBits()
[all …]
DInstCombineAddSub.cpp1261 KnownBits LHSKnown = computeKnownBits(XorLHS, 0, &I); in visitAdd() local
1262 if ((XorRHS->getValue() | LHSKnown.Zero).isAllOnesValue()) in visitAdd()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Analysis/
DInstructionSimplify.cpp2626 KnownBits LHSKnown = computeKnownBits(LHS, Q.DL, 0, Q.AC, Q.CxtI, Q.DT); in simplifyICmpWithZero() local
2627 if (LHSKnown.isNegative()) in simplifyICmpWithZero()
2629 if (LHSKnown.isNonNegative()) in simplifyICmpWithZero()
2634 KnownBits LHSKnown = computeKnownBits(LHS, Q.DL, 0, Q.AC, Q.CxtI, Q.DT); in simplifyICmpWithZero() local
2635 if (LHSKnown.isNegative()) in simplifyICmpWithZero()
2637 if (LHSKnown.isNonNegative() && in simplifyICmpWithZero()
2643 KnownBits LHSKnown = computeKnownBits(LHS, Q.DL, 0, Q.AC, Q.CxtI, Q.DT); in simplifyICmpWithZero() local
2644 if (LHSKnown.isNegative()) in simplifyICmpWithZero()
2646 if (LHSKnown.isNonNegative()) in simplifyICmpWithZero()
2651 KnownBits LHSKnown = computeKnownBits(LHS, Q.DL, 0, Q.AC, Q.CxtI, Q.DT); in simplifyICmpWithZero() local
[all …]
DValueTracking.cpp208 KnownBits LHSKnown(IT->getBitWidth()); in haveNoCommonBitsSet() local
210 computeKnownBits(LHS, LHSKnown, DL, 0, AC, CxtI, DT, nullptr, UseInstrInfo); in haveNoCommonBitsSet()
212 return (LHSKnown.Zero | RHSKnown.Zero).isAllOnesValue(); in haveNoCommonBitsSet()
317 KnownBits LHSKnown(BitWidth); in computeKnownBitsAddSub() local
318 computeKnownBits(Op0, LHSKnown, Depth + 1, Q); in computeKnownBitsAddSub()
321 KnownOut = KnownBits::computeForAddSub(Add, NSW, LHSKnown, Known2); in computeKnownBitsAddSub()
4178 KnownBits LHSKnown = computeKnownBits(LHS, DL, /*Depth=*/0, AC, CxtI, DT, in computeOverflowForUnsignedMul() local
4182 ConstantRange LHSRange = ConstantRange::fromKnownBits(LHSKnown, false); in computeOverflowForUnsignedMul()
4220 KnownBits LHSKnown = computeKnownBits(LHS, DL, /*Depth=*/0, AC, CxtI, DT, in computeOverflowForSignedMul() local
4224 if (LHSKnown.isNonNegative() || RHSKnown.isNonNegative()) in computeOverflowForSignedMul()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AMDGPU/
DAMDGPUISelLowering.cpp4464 KnownBits LHSKnown = DAG.computeKnownBits(Op.getOperand(0), Depth + 1); in computeKnownBitsForTargetNode() local
4466 unsigned TrailZ = LHSKnown.countMinTrailingZeros() + in computeKnownBitsForTargetNode()
4474 LHSKnown = LHSKnown.trunc(24); in computeKnownBitsForTargetNode()
4478 unsigned LHSValBits = 24 - LHSKnown.countMinSignBits(); in computeKnownBitsForTargetNode()
4483 bool LHSNegative = LHSKnown.isNegative(); in computeKnownBitsForTargetNode()
4484 bool LHSNonNegative = LHSKnown.isNonNegative(); in computeKnownBitsForTargetNode()
4485 bool LHSPositive = LHSKnown.isStrictlyPositive(); in computeKnownBitsForTargetNode()
4495 unsigned LHSValBits = 24 - LHSKnown.countMinLeadingZeros(); in computeKnownBitsForTargetNode()
4509 KnownBits LHSKnown = DAG.computeKnownBits(Op.getOperand(0), Depth + 1); in computeKnownBitsForTargetNode() local
4521 Known.One |= ((LHSKnown.One.getZExtValue() >> SelBits) & 0xff) << I; in computeKnownBitsForTargetNode()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/SelectionDAG/
DTargetLowering.cpp626 KnownBits LHSKnown, RHSKnown; in SimplifyMultipleUseDemandedBits() local
685 LHSKnown = DAG.computeKnownBits(Op.getOperand(0), DemandedElts, Depth + 1); in SimplifyMultipleUseDemandedBits()
691 if (DemandedBits.isSubsetOf(LHSKnown.Zero | RHSKnown.One)) in SimplifyMultipleUseDemandedBits()
693 if (DemandedBits.isSubsetOf(RHSKnown.Zero | LHSKnown.One)) in SimplifyMultipleUseDemandedBits()
698 LHSKnown = DAG.computeKnownBits(Op.getOperand(0), DemandedElts, Depth + 1); in SimplifyMultipleUseDemandedBits()
704 if (DemandedBits.isSubsetOf(LHSKnown.One | RHSKnown.Zero)) in SimplifyMultipleUseDemandedBits()
706 if (DemandedBits.isSubsetOf(RHSKnown.One | LHSKnown.Zero)) in SimplifyMultipleUseDemandedBits()
711 LHSKnown = DAG.computeKnownBits(Op.getOperand(0), DemandedElts, Depth + 1); in SimplifyMultipleUseDemandedBits()
718 if (DemandedBits.isSubsetOf(LHSKnown.Zero)) in SimplifyMultipleUseDemandedBits()
1064 KnownBits LHSKnown = TLO.DAG.computeKnownBits(Op0, DemandedElts, Depth); in SimplifyDemandedBits() local
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/SystemZ/
DSystemZISelLowering.cpp6512 KnownBits LHSKnown = in computeKnownBitsBinOp() local
6516 Known.Zero = LHSKnown.Zero & RHSKnown.Zero; in computeKnownBitsBinOp()
6517 Known.One = LHSKnown.One & RHSKnown.One; in computeKnownBitsBinOp()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/PowerPC/
DPPCISelDAGToDAG.cpp4746 KnownBits LHSKnown = CurDAG->computeKnownBits(N->getOperand(0)); in Select() local
4750 if ((LHSKnown.Zero.getZExtValue()|~(uint64_t)Imm) == ~0ULL) { in Select()
DPPCISelLowering.cpp2349 KnownBits LHSKnown = DAG.computeKnownBits(N.getOperand(0)); in SelectAddressRegReg() local
2351 if (LHSKnown.Zero.getBoolValue()) { in SelectAddressRegReg()
2355 if (~(LHSKnown.Zero | RHSKnown.Zero) == 0) { in SelectAddressRegReg()
2451 KnownBits LHSKnown = DAG.computeKnownBits(N.getOperand(0)); in SelectAddressRegImm() local
2453 if ((LHSKnown.Zero.getZExtValue()|~(uint64_t)imm) == ~0ULL) { in SelectAddressRegImm()