Lines Matching refs:KnownOne
55 APInt KnownZero(BitWidth, 0), KnownOne(BitWidth, 0); in SimplifyDemandedInstructionBits() local
58 Value *V = SimplifyDemandedUseBits(&Inst, DemandedMask, KnownZero, KnownOne, in SimplifyDemandedInstructionBits()
70 APInt &KnownZero, APInt &KnownOne, in SimplifyDemandedBits() argument
74 KnownOne, Depth, UserI); in SimplifyDemandedBits()
104 APInt &KnownZero, APInt &KnownOne, in SimplifyDemandedUseBits() argument
114 KnownOne.getBitWidth() == BitWidth && in SimplifyDemandedUseBits()
119 KnownOne = CI->getValue() & DemandedMask; in SimplifyDemandedUseBits()
120 KnownZero = ~KnownOne & DemandedMask; in SimplifyDemandedUseBits()
125 KnownOne.clearAllBits(); in SimplifyDemandedUseBits()
131 KnownOne.clearAllBits(); in SimplifyDemandedUseBits()
146 computeKnownBits(V, KnownZero, KnownOne, Depth, CxtI); in SimplifyDemandedUseBits()
225 computeKnownBits(I, KnownZero, KnownOne, Depth, CxtI); in SimplifyDemandedUseBits()
238 computeKnownBits(I, KnownZero, KnownOne, Depth, CxtI); in SimplifyDemandedUseBits()
274 KnownOne = RHSKnownOne & LHSKnownOne; in SimplifyDemandedUseBits()
319 KnownOne = RHSKnownOne | LHSKnownOne; in SimplifyDemandedUseBits()
405 KnownOne = (RHSKnownZero & LHSKnownOne) | (RHSKnownOne & LHSKnownZero); in SimplifyDemandedUseBits()
429 KnownOne = RHSKnownOne & LHSKnownOne; in SimplifyDemandedUseBits()
436 KnownOne = KnownOne.zext(truncBf); in SimplifyDemandedUseBits()
438 KnownOne, Depth + 1)) in SimplifyDemandedUseBits()
442 KnownOne = KnownOne.trunc(BitWidth); in SimplifyDemandedUseBits()
443 assert(!(KnownZero & KnownOne) && "Bits known to be one AND zero?"); in SimplifyDemandedUseBits()
464 KnownOne, Depth + 1)) in SimplifyDemandedUseBits()
466 assert(!(KnownZero & KnownOne) && "Bits known to be one AND zero?"); in SimplifyDemandedUseBits()
474 KnownOne = KnownOne.trunc(SrcBitWidth); in SimplifyDemandedUseBits()
476 KnownOne, Depth + 1)) in SimplifyDemandedUseBits()
480 KnownOne = KnownOne.zext(BitWidth); in SimplifyDemandedUseBits()
481 assert(!(KnownZero & KnownOne) && "Bits known to be one AND zero?"); in SimplifyDemandedUseBits()
501 KnownOne = KnownOne.trunc(SrcBitWidth); in SimplifyDemandedUseBits()
503 KnownOne, Depth + 1)) in SimplifyDemandedUseBits()
507 KnownOne = KnownOne.zext(BitWidth); in SimplifyDemandedUseBits()
508 assert(!(KnownZero & KnownOne) && "Bits known to be one AND zero?"); in SimplifyDemandedUseBits()
519 } else if (KnownOne[SrcBitWidth-1]) { // Input sign bit known set in SimplifyDemandedUseBits()
520 KnownOne |= NewBits; in SimplifyDemandedUseBits()
550 computeKnownBits(V, KnownZero, KnownOne, Depth, CxtI); in SimplifyDemandedUseBits()
560 KnownZero, KnownOne); in SimplifyDemandedUseBits()
577 KnownOne, Depth + 1)) in SimplifyDemandedUseBits()
579 assert(!(KnownZero & KnownOne) && "Bits known to be one AND zero?"); in SimplifyDemandedUseBits()
581 KnownOne <<= ShiftAmt; in SimplifyDemandedUseBits()
601 KnownOne, Depth + 1)) in SimplifyDemandedUseBits()
603 assert(!(KnownZero & KnownOne) && "Bits known to be one AND zero?"); in SimplifyDemandedUseBits()
605 KnownOne = APIntOps::lshr(KnownOne, ShiftAmt); in SimplifyDemandedUseBits()
646 KnownOne, Depth + 1)) in SimplifyDemandedUseBits()
648 assert(!(KnownZero & KnownOne) && "Bits known to be one AND zero?"); in SimplifyDemandedUseBits()
652 KnownOne = APIntOps::lshr(KnownOne, ShiftAmt); in SimplifyDemandedUseBits()
668 } else if ((KnownOne & SignBit) != 0) { // New bits are known one. in SimplifyDemandedUseBits()
669 KnownOne |= HighBits; in SimplifyDemandedUseBits()
692 KnownOne = LHSKnownOne & LowBits; in SimplifyDemandedUseBits()
702 KnownOne |= ~LowBits; in SimplifyDemandedUseBits()
704 assert(!(KnownZero & KnownOne) && "Bits known to be one AND zero?"); in SimplifyDemandedUseBits()
803 computeKnownBits(V, KnownZero, KnownOne, Depth, CxtI); in SimplifyDemandedUseBits()
809 if ((DemandedMask & (KnownZero|KnownOne)) == DemandedMask) in SimplifyDemandedUseBits()
810 return Constant::getIntegerValue(VTy, KnownOne); in SimplifyDemandedUseBits()
835 APInt &KnownOne) { in SimplifyShrShlDemandedBits() argument
851 KnownOne.clearAllBits(); in SimplifyShrShlDemandedBits()