Lines Matching refs:KnownOne
181 const APInt& KnownOne, in ComputeSignedMinMaxValuesFromKnownBits() argument
183 assert(KnownZero.getBitWidth() == KnownOne.getBitWidth() && in ComputeSignedMinMaxValuesFromKnownBits()
187 APInt UnknownBits = ~(KnownZero|KnownOne); in ComputeSignedMinMaxValuesFromKnownBits()
191 Min = KnownOne; in ComputeSignedMinMaxValuesFromKnownBits()
192 Max = KnownOne|UnknownBits; in ComputeSignedMinMaxValuesFromKnownBits()
205 const APInt &KnownOne, in ComputeUnsignedMinMaxValuesFromKnownBits() argument
207 assert(KnownZero.getBitWidth() == KnownOne.getBitWidth() && in ComputeUnsignedMinMaxValuesFromKnownBits()
211 APInt UnknownBits = ~(KnownZero|KnownOne); in ComputeUnsignedMinMaxValuesFromKnownBits()
214 Min = KnownOne; in ComputeUnsignedMinMaxValuesFromKnownBits()
216 Max = KnownOne|UnknownBits; in ComputeUnsignedMinMaxValuesFromKnownBits()
1233 APInt KnownZero(SrcBits, 0), KnownOne(SrcBits, 0); in visitICmpInstWithInstAndIntCst() local
1234 computeKnownBits(LHSI->getOperand(0), KnownZero, KnownOne, 0, &ICI); in visitICmpInstWithInstAndIntCst()
1237 if ((KnownZero|KnownOne).countLeadingOnes() >= SrcBits-DstBits) { in visitICmpInstWithInstAndIntCst()
1240 NewRHS |= KnownOne & APInt::getHighBitsSet(SrcBits, SrcBits-DstBits); in visitICmpInstWithInstAndIntCst()