Lines Matching refs:LHSKnown
171 KnownBits LHSKnown(BitWidth), RHSKnown(BitWidth); in SimplifyDemandedUseBits() local
195 SimplifyDemandedBits(I, 0, DemandedFromOps, LHSKnown, Depth + 1, Q) || in SimplifyDemandedUseBits()
211 SimplifyDemandedBits(I, 0, DemandedMask & ~RHSKnown.Zero, LHSKnown, in SimplifyDemandedUseBits()
215 Known = analyzeKnownBitsFromAndXorOr(cast<Operator>(I), LHSKnown, RHSKnown, in SimplifyDemandedUseBits()
225 if (DemandedMask.isSubsetOf(LHSKnown.Zero | RHSKnown.One)) in SimplifyDemandedUseBits()
227 if (DemandedMask.isSubsetOf(RHSKnown.Zero | LHSKnown.One)) in SimplifyDemandedUseBits()
231 if (ShrinkDemandedConstant(I, 1, DemandedMask & ~LHSKnown.Zero)) in SimplifyDemandedUseBits()
239 SimplifyDemandedBits(I, 0, DemandedMask & ~RHSKnown.One, LHSKnown, in SimplifyDemandedUseBits()
246 Known = analyzeKnownBitsFromAndXorOr(cast<Operator>(I), LHSKnown, RHSKnown, in SimplifyDemandedUseBits()
256 if (DemandedMask.isSubsetOf(LHSKnown.One | RHSKnown.Zero)) in SimplifyDemandedUseBits()
258 if (DemandedMask.isSubsetOf(RHSKnown.One | LHSKnown.Zero)) in SimplifyDemandedUseBits()
267 WithCache<const Value *> LHSCache(I->getOperand(0), LHSKnown), in SimplifyDemandedUseBits()
279 SimplifyDemandedBits(I, 0, DemandedMask, LHSKnown, Depth + 1, Q)) in SimplifyDemandedUseBits()
292 Known = analyzeKnownBitsFromAndXorOr(cast<Operator>(I), LHSKnown, RHSKnown, in SimplifyDemandedUseBits()
304 if (DemandedMask.isSubsetOf(LHSKnown.Zero)) in SimplifyDemandedUseBits()
310 if (DemandedMask.isSubsetOf(RHSKnown.Zero | LHSKnown.Zero)) { in SimplifyDemandedUseBits()
324 RHSKnown.One.isSubsetOf(LHSKnown.One)) { in SimplifyDemandedUseBits()
355 (LHSKnown.One & RHSKnown.One & DemandedMask) != 0) { in SimplifyDemandedUseBits()
356 APInt NewMask = ~(LHSKnown.One & RHSKnown.One & DemandedMask); in SimplifyDemandedUseBits()
371 SimplifyDemandedBits(I, 1, DemandedMask, LHSKnown, Depth + 1, Q)) in SimplifyDemandedUseBits()
412 adjustKnownBitsForSelectArm(LHSKnown, I->getOperand(0), I->getOperand(1), in SimplifyDemandedUseBits()
416 Known = LHSKnown.intersectWith(RHSKnown); in SimplifyDemandedUseBits()
541 SimplifyDemandedBits(I, 0, DemandedFromLHS, LHSKnown, Depth + 1, Q)) in SimplifyDemandedUseBits()
548 if (DemandedFromOps.isSubsetOf(LHSKnown.Zero)) in SimplifyDemandedUseBits()
565 Known = KnownBits::computeForAddSub(true, NSW, NUW, LHSKnown, RHSKnown); in SimplifyDemandedUseBits()
584 SimplifyDemandedBits(I, 0, DemandedFromLHS, LHSKnown, Depth + 1, Q)) in SimplifyDemandedUseBits()
593 if (DemandedFromOps.isOne() && DemandedFromOps.isSubsetOf(LHSKnown.Zero)) in SimplifyDemandedUseBits()
599 Known = KnownBits::computeForAddSub(false, NSW, NUW, LHSKnown, RHSKnown); in SimplifyDemandedUseBits()
846 if (SimplifyDemandedBits(I, 0, DemandedMaskIn, LHSKnown, Depth + 1, Q)) { in SimplifyDemandedUseBits()
853 Known = KnownBits::udiv(LHSKnown, KnownBits::makeConstant(*SA), in SimplifyDemandedUseBits()
874 if (SimplifyDemandedBits(I, 0, Mask2, LHSKnown, Depth + 1, Q)) in SimplifyDemandedUseBits()
878 Known.Zero = LHSKnown.Zero & LowBits; in SimplifyDemandedUseBits()
879 Known.One = LHSKnown.One & LowBits; in SimplifyDemandedUseBits()
883 if (LHSKnown.isNonNegative() || LowBits.isSubsetOf(LHSKnown.Zero)) in SimplifyDemandedUseBits()
888 if (LHSKnown.isNegative() && LowBits.intersects(LHSKnown.One)) in SimplifyDemandedUseBits()
951 if (SimplifyDemandedBits(I, 0, DemandedMask, LHSKnown, Depth + 1, Q) || in SimplifyDemandedUseBits()
953 I, 1, (DemandedMask & ~LHSKnown.Zero).zextOrTrunc(MaskWidth), in SimplifyDemandedUseBits()
960 Known = LHSKnown & RHSKnown; in SimplifyDemandedUseBits()
976 if (DemandedMask.isSubsetOf(RHSKnown.One | LHSKnown.Zero)) in SimplifyDemandedUseBits()
981 I, 1, (DemandedMask & ~LHSKnown.Zero).zextOrTrunc(MaskWidth))) in SimplifyDemandedUseBits()
995 LHSKnown = computeKnownBits(InnerPtr, Depth + 1, I); in SimplifyDemandedUseBits()
996 if (!LHSKnown.isZero()) { in SimplifyDemandedUseBits()
997 const unsigned trailingZeros = LHSKnown.countMinTrailingZeros(); in SimplifyDemandedUseBits()
1040 if (SimplifyDemandedBits(I, 0, DemandedMaskLHS, LHSKnown, in SimplifyDemandedUseBits()
1048 LHSKnown = computeKnownBits(I->getOperand(0), Depth + 1, I); in SimplifyDemandedUseBits()
1049 if (DemandedMaskLHS.isSubsetOf(LHSKnown.Zero | LHSKnown.One) && in SimplifyDemandedUseBits()
1050 !match(I->getOperand(0), m_SpecificInt(LHSKnown.One))) { in SimplifyDemandedUseBits()
1051 replaceOperand(*I, 0, Constant::getIntegerValue(VTy, LHSKnown.One)); in SimplifyDemandedUseBits()
1063 Known.Zero = LHSKnown.Zero.shl(ShiftAmt) | in SimplifyDemandedUseBits()
1065 Known.One = LHSKnown.One.shl(ShiftAmt) | in SimplifyDemandedUseBits()
1146 KnownBits LHSKnown(BitWidth); in SimplifyMultipleUseDemandedBits() local
1156 llvm::computeKnownBits(I->getOperand(0), LHSKnown, Depth + 1, Q); in SimplifyMultipleUseDemandedBits()
1157 Known = analyzeKnownBitsFromAndXorOr(cast<Operator>(I), LHSKnown, RHSKnown, in SimplifyMultipleUseDemandedBits()
1168 if (DemandedMask.isSubsetOf(LHSKnown.Zero | RHSKnown.One)) in SimplifyMultipleUseDemandedBits()
1170 if (DemandedMask.isSubsetOf(RHSKnown.Zero | LHSKnown.One)) in SimplifyMultipleUseDemandedBits()
1177 llvm::computeKnownBits(I->getOperand(0), LHSKnown, Depth + 1, Q); in SimplifyMultipleUseDemandedBits()
1178 Known = analyzeKnownBitsFromAndXorOr(cast<Operator>(I), LHSKnown, RHSKnown, in SimplifyMultipleUseDemandedBits()
1191 if (DemandedMask.isSubsetOf(LHSKnown.One | RHSKnown.Zero)) in SimplifyMultipleUseDemandedBits()
1193 if (DemandedMask.isSubsetOf(RHSKnown.One | LHSKnown.Zero)) in SimplifyMultipleUseDemandedBits()
1200 llvm::computeKnownBits(I->getOperand(0), LHSKnown, Depth + 1, Q); in SimplifyMultipleUseDemandedBits()
1201 Known = analyzeKnownBitsFromAndXorOr(cast<Operator>(I), LHSKnown, RHSKnown, in SimplifyMultipleUseDemandedBits()
1215 if (DemandedMask.isSubsetOf(LHSKnown.Zero)) in SimplifyMultipleUseDemandedBits()
1230 llvm::computeKnownBits(I->getOperand(0), LHSKnown, Depth + 1, Q); in SimplifyMultipleUseDemandedBits()
1231 if (DemandedFromOps.isSubsetOf(LHSKnown.Zero)) in SimplifyMultipleUseDemandedBits()
1237 KnownBits::computeForAddSub(/*Add=*/true, NSW, NUW, LHSKnown, RHSKnown); in SimplifyMultipleUseDemandedBits()
1253 llvm::computeKnownBits(I->getOperand(0), LHSKnown, Depth + 1, Q); in SimplifyMultipleUseDemandedBits()
1254 Known = KnownBits::computeForAddSub(/*Add=*/false, NSW, NUW, LHSKnown, in SimplifyMultipleUseDemandedBits()