Lines Matching refs:LHSKnownZero
141 APInt LHSKnownZero(BitWidth, 0), LHSKnownOne(BitWidth, 0);
162 computeKnownBits(I->getOperand(0), LHSKnownZero, LHSKnownOne, Depth + 1,
168 if ((DemandedMask & ~LHSKnownZero & RHSKnownOne) ==
169 (DemandedMask & ~LHSKnownZero))
176 if ((DemandedMask & (RHSKnownZero|LHSKnownZero)) == DemandedMask)
186 computeKnownBits(I->getOperand(0), LHSKnownZero, LHSKnownOne, Depth + 1,
195 if ((DemandedMask & ~RHSKnownOne & LHSKnownZero) ==
204 if ((DemandedMask & (~LHSKnownZero) & RHSKnownOne) ==
205 (DemandedMask & (~LHSKnownZero)))
213 computeKnownBits(I->getOperand(0), LHSKnownZero, LHSKnownOne, Depth + 1,
220 if ((DemandedMask & LHSKnownZero) == DemandedMask)
245 LHSKnownZero, LHSKnownOne, Depth + 1))
248 assert(!(LHSKnownZero & LHSKnownOne) && "Bits known to be one AND zero?");
252 if ((DemandedMask & ((RHSKnownZero | LHSKnownZero)|
258 if ((DemandedMask & ~LHSKnownZero & RHSKnownOne) ==
259 (DemandedMask & ~LHSKnownZero))
266 if ((DemandedMask & (RHSKnownZero|LHSKnownZero)) == DemandedMask)
270 if (ShrinkDemandedConstant(I, 1, DemandedMask & ~LHSKnownZero))
276 KnownZero = RHSKnownZero | LHSKnownZero;
283 LHSKnownZero, LHSKnownOne, Depth + 1))
286 assert(!(LHSKnownZero & LHSKnownOne) && "Bits known to be one AND zero?");
290 if ((DemandedMask & ((RHSKnownZero & LHSKnownZero)|
299 if ((DemandedMask & ~RHSKnownOne & LHSKnownZero) ==
308 if ((DemandedMask & (~LHSKnownZero) & RHSKnownOne) ==
309 (DemandedMask & (~LHSKnownZero)))
317 KnownZero = RHSKnownZero & LHSKnownZero;
324 SimplifyDemandedBits(I->getOperandUse(0), DemandedMask, LHSKnownZero,
328 assert(!(LHSKnownZero & LHSKnownOne) && "Bits known to be one AND zero?");
331 APInt IKnownZero = (RHSKnownZero & LHSKnownZero) |
335 (RHSKnownOne & LHSKnownZero);
346 if ((DemandedMask & LHSKnownZero) == DemandedMask)
352 if ((DemandedMask & ~RHSKnownZero & ~LHSKnownZero) == 0) {
403 KnownZero= (RHSKnownZero & LHSKnownZero) | (RHSKnownOne & LHSKnownOne);
405 KnownOne = (RHSKnownZero & LHSKnownOne) | (RHSKnownOne & LHSKnownZero);
417 SimplifyDemandedBits(I->getOperandUse(1), DemandedMask, LHSKnownZero,
421 assert(!(LHSKnownZero & LHSKnownOne) && "Bits known to be one AND zero?");
430 KnownZero = RHSKnownZero & LHSKnownZero;
534 LHSKnownZero, LHSKnownOne, Depth + 1) ||
537 LHSKnownZero, LHSKnownOne, Depth + 1)) {
686 if (SimplifyDemandedBits(I->getOperandUse(0), Mask2, LHSKnownZero,
691 KnownZero = LHSKnownZero & LowBits;
696 if (LHSKnownZero[BitWidth-1] || ((LHSKnownZero & LowBits) == LowBits))
711 APInt LHSKnownZero(BitWidth, 0), LHSKnownOne(BitWidth, 0);
712 computeKnownBits(I->getOperand(0), LHSKnownZero, LHSKnownOne, Depth + 1,
715 if (LHSKnownZero.isNegative())