Lines Matching refs:RHSKnownOne

142   APInt RHSKnownZero(BitWidth, 0), RHSKnownOne(BitWidth, 0);  in SimplifyDemandedUseBits()  local
160 computeKnownBits(I->getOperand(1), RHSKnownZero, RHSKnownOne, Depth + 1, in SimplifyDemandedUseBits()
168 if ((DemandedMask & ~LHSKnownZero & RHSKnownOne) == in SimplifyDemandedUseBits()
184 computeKnownBits(I->getOperand(1), RHSKnownZero, RHSKnownOne, Depth + 1, in SimplifyDemandedUseBits()
195 if ((DemandedMask & ~RHSKnownOne & LHSKnownZero) == in SimplifyDemandedUseBits()
196 (DemandedMask & ~RHSKnownOne)) in SimplifyDemandedUseBits()
204 if ((DemandedMask & (~LHSKnownZero) & RHSKnownOne) == in SimplifyDemandedUseBits()
211 computeKnownBits(I->getOperand(1), RHSKnownZero, RHSKnownOne, Depth + 1, in SimplifyDemandedUseBits()
243 RHSKnownOne, Depth + 1) || in SimplifyDemandedUseBits()
247 assert(!(RHSKnownZero & RHSKnownOne) && "Bits known to be one AND zero?"); in SimplifyDemandedUseBits()
253 (RHSKnownOne & LHSKnownOne))) == DemandedMask) in SimplifyDemandedUseBits()
254 return Constant::getIntegerValue(VTy, RHSKnownOne & LHSKnownOne); in SimplifyDemandedUseBits()
258 if ((DemandedMask & ~LHSKnownZero & RHSKnownOne) == in SimplifyDemandedUseBits()
274 KnownOne = RHSKnownOne & LHSKnownOne; in SimplifyDemandedUseBits()
281 RHSKnownOne, Depth + 1) || in SimplifyDemandedUseBits()
282 SimplifyDemandedBits(I->getOperandUse(0), DemandedMask & ~RHSKnownOne, in SimplifyDemandedUseBits()
285 assert(!(RHSKnownZero & RHSKnownOne) && "Bits known to be one AND zero?"); in SimplifyDemandedUseBits()
291 (RHSKnownOne | LHSKnownOne))) == DemandedMask) in SimplifyDemandedUseBits()
292 return Constant::getIntegerValue(VTy, RHSKnownOne | LHSKnownOne); in SimplifyDemandedUseBits()
299 if ((DemandedMask & ~RHSKnownOne & LHSKnownZero) == in SimplifyDemandedUseBits()
300 (DemandedMask & ~RHSKnownOne)) in SimplifyDemandedUseBits()
308 if ((DemandedMask & (~LHSKnownZero) & RHSKnownOne) == in SimplifyDemandedUseBits()
319 KnownOne = RHSKnownOne | LHSKnownOne; in SimplifyDemandedUseBits()
323 RHSKnownOne, Depth + 1) || in SimplifyDemandedUseBits()
327 assert(!(RHSKnownZero & RHSKnownOne) && "Bits known to be one AND zero?"); in SimplifyDemandedUseBits()
332 (RHSKnownOne & LHSKnownOne); in SimplifyDemandedUseBits()
335 (RHSKnownOne & LHSKnownZero); in SimplifyDemandedUseBits()
363 if ((DemandedMask & (RHSKnownZero|RHSKnownOne)) == DemandedMask) { in SimplifyDemandedUseBits()
365 if ((RHSKnownOne & LHSKnownOne) == RHSKnownOne) { in SimplifyDemandedUseBits()
367 ~RHSKnownOne & DemandedMask); in SimplifyDemandedUseBits()
386 (LHSKnownOne & RHSKnownOne & DemandedMask) != 0) { in SimplifyDemandedUseBits()
389 APInt NewMask = ~(LHSKnownOne & RHSKnownOne & DemandedMask); in SimplifyDemandedUseBits()
403 KnownZero= (RHSKnownZero & LHSKnownZero) | (RHSKnownOne & LHSKnownOne); in SimplifyDemandedUseBits()
405 KnownOne = (RHSKnownZero & LHSKnownOne) | (RHSKnownOne & LHSKnownZero); in SimplifyDemandedUseBits()
416 RHSKnownOne, Depth + 1) || in SimplifyDemandedUseBits()
420 assert(!(RHSKnownZero & RHSKnownOne) && "Bits known to be one AND zero?"); in SimplifyDemandedUseBits()
429 KnownOne = RHSKnownOne & LHSKnownOne; in SimplifyDemandedUseBits()