/external/llvm/lib/Transforms/InstCombine/ |
D | InstCombineSimplifyDemanded.cpp | 155 APInt RHSKnownZero(BitWidth, 0), RHSKnownOne(BitWidth, 0); in SimplifyDemandedUseBits() local 173 computeKnownBits(I->getOperand(1), RHSKnownZero, RHSKnownOne, Depth + 1, in SimplifyDemandedUseBits() 184 if ((DemandedMask & ~RHSKnownZero & LHSKnownOne) == in SimplifyDemandedUseBits() 185 (DemandedMask & ~RHSKnownZero)) in SimplifyDemandedUseBits() 189 if ((DemandedMask & (RHSKnownZero|LHSKnownZero)) == DemandedMask) in SimplifyDemandedUseBits() 197 computeKnownBits(I->getOperand(1), RHSKnownZero, RHSKnownOne, Depth + 1, in SimplifyDemandedUseBits() 205 if ((DemandedMask & ~LHSKnownOne & RHSKnownZero) == in SimplifyDemandedUseBits() 214 if ((DemandedMask & (~RHSKnownZero) & LHSKnownOne) == in SimplifyDemandedUseBits() 215 (DemandedMask & (~RHSKnownZero))) in SimplifyDemandedUseBits() 224 computeKnownBits(I->getOperand(1), RHSKnownZero, RHSKnownOne, Depth + 1, in SimplifyDemandedUseBits() [all …]
|
D | InstCombineAddSub.cpp | 921 APInt RHSKnownZero(BitWidth, 0); in WillNotOverflowSignedAdd() local 923 computeKnownBits(RHS, RHSKnownZero, RHSKnownOne, 0, &CxtI); in WillNotOverflowSignedAdd() 927 if ((LHSKnownOne[BitWidth - 1] && RHSKnownZero[BitWidth - 1]) || in WillNotOverflowSignedAdd() 932 if (checkRippleForAdd(LHSKnownZero, RHSKnownZero)) in WillNotOverflowSignedAdd() 934 if (checkRippleForAdd(RHSKnownZero, LHSKnownZero)) in WillNotOverflowSignedAdd() 958 APInt RHSKnownZero(BitWidth, 0); in WillNotOverflowSignedSub() local 960 computeKnownBits(RHS, RHSKnownZero, RHSKnownOne, 0, &CxtI); in WillNotOverflowSignedSub() 965 (LHSKnownZero[BitWidth - 1] && RHSKnownZero[BitWidth - 1])) in WillNotOverflowSignedSub() 1169 APInt RHSKnownZero(IT->getBitWidth(), 0); in visitAdd() local 1170 computeKnownBits(RHS, RHSKnownZero, RHSKnownOne, 0, &I); in visitAdd() [all …]
|
/external/llvm/lib/Analysis/ |
D | ValueTracking.cpp | 723 APInt RHSKnownZero(BitWidth, 0), RHSKnownOne(BitWidth, 0); in computeKnownBitsFromAssume() local 724 computeKnownBits(A, RHSKnownZero, RHSKnownOne, DL, Depth+1, Query(Q, I)); in computeKnownBitsFromAssume() 725 KnownZero |= RHSKnownZero; in computeKnownBitsFromAssume() 731 APInt RHSKnownZero(BitWidth, 0), RHSKnownOne(BitWidth, 0); in computeKnownBitsFromAssume() local 732 computeKnownBits(A, RHSKnownZero, RHSKnownOne, DL, Depth+1, Query(Q, I)); in computeKnownBitsFromAssume() 738 KnownZero |= RHSKnownZero & MaskKnownOne; in computeKnownBitsFromAssume() 744 APInt RHSKnownZero(BitWidth, 0), RHSKnownOne(BitWidth, 0); in computeKnownBitsFromAssume() local 745 computeKnownBits(A, RHSKnownZero, RHSKnownOne, DL, Depth+1, Query(Q, I)); in computeKnownBitsFromAssume() 752 KnownOne |= RHSKnownZero & MaskKnownOne; in computeKnownBitsFromAssume() 757 APInt RHSKnownZero(BitWidth, 0), RHSKnownOne(BitWidth, 0); in computeKnownBitsFromAssume() local [all …]
|
/external/llvm/lib/Transforms/Scalar/ |
D | SeparateConstOffsetFromGEP.cpp | 666 APInt LHSKnownOne, LHSKnownZero, RHSKnownOne, RHSKnownZero; in NoCommonBits() local 668 ComputeKnownBits(RHS, RHSKnownOne, RHSKnownZero); in NoCommonBits() 669 return (LHSKnownZero | RHSKnownZero).isAllOnesValue(); in NoCommonBits()
|
/external/llvm/lib/Target/PowerPC/ |
D | PPCISelLowering.cpp | 1487 APInt RHSKnownZero, RHSKnownOne; in SelectAddressRegReg() local 1493 RHSKnownZero, RHSKnownOne); in SelectAddressRegReg() 1496 if (~(LHSKnownZero | RHSKnownZero) == 0) { in SelectAddressRegReg()
|