/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/InstCombine/ |
D | InstCombineSimplifyDemanded.cpp | 153 KnownBits LHSKnown(BitWidth), RHSKnown(BitWidth); in SimplifyDemandedUseBits() local 169 SimplifyDemandedBits(I, 0, DemandedMask & ~RHSKnown.Zero, LHSKnown, in SimplifyDemandedUseBits() 173 assert(!LHSKnown.hasConflict() && "Bits known to be one AND zero?"); in SimplifyDemandedUseBits() 176 APInt IKnownZero = RHSKnown.Zero | LHSKnown.Zero; in SimplifyDemandedUseBits() 178 APInt IKnownOne = RHSKnown.One & LHSKnown.One; in SimplifyDemandedUseBits() 187 if (DemandedMask.isSubsetOf(LHSKnown.Zero | RHSKnown.One)) in SimplifyDemandedUseBits() 189 if (DemandedMask.isSubsetOf(RHSKnown.Zero | LHSKnown.One)) in SimplifyDemandedUseBits() 193 if (ShrinkDemandedConstant(I, 1, DemandedMask & ~LHSKnown.Zero)) in SimplifyDemandedUseBits() 203 SimplifyDemandedBits(I, 0, DemandedMask & ~RHSKnown.One, LHSKnown, in SimplifyDemandedUseBits() 207 assert(!LHSKnown.hasConflict() && "Bits known to be one AND zero?"); in SimplifyDemandedUseBits() [all …]
|
D | InstCombineAddSub.cpp | 1182 KnownBits LHSKnown = computeKnownBits(XorLHS, 0, &I); in visitAdd() local 1183 if ((XorRHS->getValue() | LHSKnown.Zero).isAllOnesValue()) in visitAdd()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Analysis/ |
D | ValueTracking.cpp | 202 KnownBits LHSKnown(IT->getBitWidth()); in haveNoCommonBitsSet() local 204 computeKnownBits(LHS, LHSKnown, DL, 0, AC, CxtI, DT); in haveNoCommonBitsSet() 206 return (LHSKnown.Zero | RHSKnown.Zero).isAllOnesValue(); in haveNoCommonBitsSet() 308 KnownBits LHSKnown(BitWidth); in computeKnownBitsAddSub() local 309 computeKnownBits(Op0, LHSKnown, Depth + 1, Q); in computeKnownBitsAddSub() 312 KnownOut = KnownBits::computeForAddSub(Add, NSW, LHSKnown, Known2); in computeKnownBitsAddSub() 3719 KnownBits LHSKnown(BitWidth); in computeOverflowForUnsignedMul() local 3721 computeKnownBits(LHS, LHSKnown, DL, /*Depth=*/0, AC, CxtI, DT); in computeOverflowForUnsignedMul() 3725 unsigned ZeroBits = LHSKnown.countMinLeadingZeros() + in computeOverflowForUnsignedMul() 3733 APInt LHSMax = ~LHSKnown.Zero; in computeOverflowForUnsignedMul() [all …]
|
D | InstructionSimplify.cpp | 2425 KnownBits LHSKnown = computeKnownBits(LHS, Q.DL, 0, Q.AC, Q.CxtI, Q.DT); in simplifyICmpWithZero() local 2426 if (LHSKnown.isNegative()) in simplifyICmpWithZero() 2428 if (LHSKnown.isNonNegative()) in simplifyICmpWithZero() 2433 KnownBits LHSKnown = computeKnownBits(LHS, Q.DL, 0, Q.AC, Q.CxtI, Q.DT); in simplifyICmpWithZero() local 2434 if (LHSKnown.isNegative()) in simplifyICmpWithZero() 2436 if (LHSKnown.isNonNegative() && in simplifyICmpWithZero() 2442 KnownBits LHSKnown = computeKnownBits(LHS, Q.DL, 0, Q.AC, Q.CxtI, Q.DT); in simplifyICmpWithZero() local 2443 if (LHSKnown.isNegative()) in simplifyICmpWithZero() 2445 if (LHSKnown.isNonNegative()) in simplifyICmpWithZero() 2450 KnownBits LHSKnown = computeKnownBits(LHS, Q.DL, 0, Q.AC, Q.CxtI, Q.DT); in simplifyICmpWithZero() local [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/AMDGPU/ |
D | AMDGPUISelLowering.cpp | 4213 KnownBits LHSKnown, RHSKnown; in computeKnownBitsForTargetNode() local 4214 DAG.computeKnownBits(Op.getOperand(0), LHSKnown, Depth + 1); in computeKnownBitsForTargetNode() 4217 unsigned TrailZ = LHSKnown.countMinTrailingZeros() + in computeKnownBitsForTargetNode() 4221 unsigned LHSValBits = 32 - std::max(LHSKnown.countMinSignBits(), 8u); in computeKnownBitsForTargetNode() 4228 bool LHSNegative = !!(LHSKnown.One & (1 << 23)); in computeKnownBitsForTargetNode() 4229 bool LHSPositive = !!(LHSKnown.Zero & (1 << 23)); in computeKnownBitsForTargetNode() 4247 KnownBits LHSKnown, RHSKnown; in computeKnownBitsForTargetNode() local 4248 DAG.computeKnownBits(Op.getOperand(0), LHSKnown, Depth + 1); in computeKnownBitsForTargetNode() 4260 Known.One |= ((LHSKnown.One.getZExtValue() >> SelBits) & 0xff) << I; in computeKnownBitsForTargetNode() 4261 Known.Zero |= ((LHSKnown.Zero.getZExtValue() >> SelBits) & 0xff) << I; in computeKnownBitsForTargetNode()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/CodeGen/SelectionDAG/ |
D | TargetLowering.cpp | 581 KnownBits LHSKnown; in SimplifyDemandedBits() local 583 TLO.DAG.computeKnownBits(Op0, LHSKnown, Depth); in SimplifyDemandedBits() 585 if ((LHSKnown.Zero & NewMask) == (~RHSC->getAPIntValue() & NewMask)) in SimplifyDemandedBits() 590 if (ShrinkDemandedConstant(Op, ~LHSKnown.Zero & NewMask, TLO)) in SimplifyDemandedBits() 599 LHSKnown.One == ~RHSC->getAPIntValue()) { in SimplifyDemandedBits()
|
/external/llvm/lib/Analysis/ |
D | ValueTracking.cpp | 287 APInt LHSKnown = LHSKnownZero | LHSKnownOne; in computeKnownBitsAddSub() local 290 APInt Known = LHSKnown & RHSKnown & CarryKnown; in computeKnownBitsAddSub()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/SystemZ/ |
D | SystemZISelLowering.cpp | 5795 KnownBits LHSKnown(SrcBitWidth), RHSKnown(SrcBitWidth); in computeKnownBitsBinOp() local 5796 DAG.computeKnownBits(Op.getOperand(OpNo), LHSKnown, Src0DemE, Depth + 1); in computeKnownBitsBinOp() 5798 Known.Zero = LHSKnown.Zero & RHSKnown.Zero; in computeKnownBitsBinOp() 5799 Known.One = LHSKnown.One & RHSKnown.One; in computeKnownBitsBinOp()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/PowerPC/ |
D | PPCISelDAGToDAG.cpp | 4432 KnownBits LHSKnown; in Select() local 4433 CurDAG->computeKnownBits(N->getOperand(0), LHSKnown); in Select() 4437 if ((LHSKnown.Zero.getZExtValue()|~(uint64_t)Imm) == ~0ULL) { in Select()
|
D | PPCISelLowering.cpp | 2217 KnownBits LHSKnown, RHSKnown; in SelectAddressRegReg() local 2218 DAG.computeKnownBits(N.getOperand(0), LHSKnown); in SelectAddressRegReg() 2220 if (LHSKnown.Zero.getBoolValue()) { in SelectAddressRegReg() 2224 if (~(LHSKnown.Zero | RHSKnown.Zero) == 0) { in SelectAddressRegReg() 2320 KnownBits LHSKnown; in SelectAddressRegImm() local 2321 DAG.computeKnownBits(N.getOperand(0), LHSKnown); in SelectAddressRegImm() 2323 if ((LHSKnown.Zero.getZExtValue()|~(uint64_t)imm) == ~0ULL) { in SelectAddressRegImm()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/X86/ |
D | X86ISelLowering.cpp | 39609 KnownBits LHSKnown; in combinePMULDQ() local 39610 if (TLI.SimplifyDemandedBits(LHS, DemandedMask, LHSKnown, TLO)) { in combinePMULDQ()
|