reference, declaration → definition definition → references, declarations, derived classes, virtual overrides reference to multiple definitions → definitions unreferenced |
796 DemandedBits = APInt::getAllOnesValue(BitWidth); 817 APInt SrcDemandedBits = DemandedBits.zextOrSelf(SrcBitWidth); 856 APInt DemandedSclBits = DemandedBits.zextOrTrunc(NumSclBits); 863 if (SimplifyDemandedBits(Vec, DemandedBits, DemandedVecElts, KnownVec, TLO, 894 if (SimplifyDemandedBits(Sub, DemandedBits, SubElts, KnownSub, TLO, 897 if (SimplifyDemandedBits(Base, DemandedBits, BaseElts, KnownBase, TLO, 924 if (SimplifyDemandedBits(Src, DemandedBits, SrcElts, Known, TLO, Depth + 1)) 937 if (SimplifyDemandedBits(Op.getOperand(i), DemandedBits, DemandedSubElts, 979 if (SimplifyDemandedBits(Op0, DemandedBits, DemandedLHS, Known2, TLO, 986 if (SimplifyDemandedBits(Op1, DemandedBits, DemandedRHS, Known2, TLO, 995 Op0, DemandedBits, DemandedLHS, TLO.DAG, Depth + 1); 997 Op1, DemandedBits, DemandedRHS, TLO.DAG, Depth + 1); 1019 if ((LHSKnown.Zero & DemandedBits) == 1020 (~RHSC->getAPIntValue() & DemandedBits)) 1025 if (ShrinkDemandedConstant(Op, ~LHSKnown.Zero & DemandedBits, TLO)) 1040 if (SimplifyDemandedBits(Op1, DemandedBits, DemandedElts, Known, TLO, 1044 if (SimplifyDemandedBits(Op0, ~Known.Zero & DemandedBits, DemandedElts, 1050 if (!DemandedBits.isAllOnesValue() || !DemandedElts.isAllOnesValue()) { 1052 Op0, DemandedBits, DemandedElts, TLO.DAG, Depth + 1); 1054 Op1, DemandedBits, DemandedElts, TLO.DAG, Depth + 1); 1065 if (DemandedBits.isSubsetOf(Known2.Zero | Known.One)) 1067 if (DemandedBits.isSubsetOf(Known.Zero | Known2.One)) 1070 if (DemandedBits.isSubsetOf(Known.Zero | Known2.Zero)) 1073 if (ShrinkDemandedConstant(Op, ~Known2.Zero & DemandedBits, TLO)) 1076 if (ShrinkDemandedOp(Op, BitWidth, DemandedBits, TLO)) 1089 if (SimplifyDemandedBits(Op1, DemandedBits, DemandedElts, Known, TLO, 1093 if (SimplifyDemandedBits(Op0, ~Known.One & DemandedBits, DemandedElts, 1099 if (!DemandedBits.isAllOnesValue() || !DemandedElts.isAllOnesValue()) { 1101 Op0, DemandedBits, DemandedElts, TLO.DAG, Depth + 1); 1103 Op1, DemandedBits, DemandedElts, TLO.DAG, Depth + 1); 1114 if (DemandedBits.isSubsetOf(Known2.One | Known.Zero)) 1116 if (DemandedBits.isSubsetOf(Known.One | Known2.Zero)) 1119 if (ShrinkDemandedConstant(Op, DemandedBits, TLO)) 1122 if (ShrinkDemandedOp(Op, BitWidth, DemandedBits, TLO)) 1135 if (SimplifyDemandedBits(Op1, DemandedBits, DemandedElts, Known, TLO, 1139 if (SimplifyDemandedBits(Op0, DemandedBits, DemandedElts, Known2, TLO, 1145 if (!DemandedBits.isAllOnesValue() || !DemandedElts.isAllOnesValue()) { 1147 Op0, DemandedBits, DemandedElts, TLO.DAG, Depth + 1); 1149 Op1, DemandedBits, DemandedElts, TLO.DAG, Depth + 1); 1160 if (DemandedBits.isSubsetOf(Known.Zero)) 1162 if (DemandedBits.isSubsetOf(Known2.Zero)) 1165 if (ShrinkDemandedOp(Op, BitWidth, DemandedBits, TLO)) 1171 if (DemandedBits.isSubsetOf(Known.Zero | Known2.Zero)) 1187 TLO.DAG.getConstant(~C->getAPIntValue() & DemandedBits, dl, VT); 1195 if (DemandedBits.isSubsetOf(C->getAPIntValue())) { 1201 if (ShrinkDemandedConstant(Op, DemandedBits, TLO)) 1210 if (SimplifyDemandedBits(Op.getOperand(2), DemandedBits, Known, TLO, 1213 if (SimplifyDemandedBits(Op.getOperand(1), DemandedBits, Known2, TLO, 1220 if (ShrinkDemandedConstant(Op, DemandedBits, TLO)) 1228 if (SimplifyDemandedBits(Op.getOperand(3), DemandedBits, Known, TLO, 1231 if (SimplifyDemandedBits(Op.getOperand(2), DemandedBits, Known2, TLO, 1238 if (ShrinkDemandedConstant(Op, DemandedBits, TLO)) 1252 if (DemandedBits.isSignMask() && 1291 if (!DemandedBits.intersects(APInt::getLowBitsSet(BitWidth, ShAmt))) { 1311 if (SimplifyDemandedBits(Op0, DemandedBits.lshr(ShAmt), DemandedElts, 1317 if ((ShAmt < DemandedBits.getActiveBits()) && 1318 ShrinkDemandedOp(Op, BitWidth, DemandedBits, TLO)) 1327 if (ShAmt < InnerBits && DemandedBits.getActiveBits() <= InnerBits && 1349 DemandedBits.getActiveBits() <= 1351 DemandedBits.countTrailingZeros() >= ShAmt) { 1384 APInt InDemandedMask = (DemandedBits << ShAmt); 1398 if (!DemandedBits.intersects( 1437 if (DemandedBits.isOneValue()) 1449 APInt InDemandedMask = (DemandedBits << ShAmt); 1458 if (DemandedBits.countLeadingZeros() < ShAmt) 1471 DemandedBits.countLeadingZeros() >= ShAmt) { 1478 int Log2 = DemandedBits.exactLogBase2(); 1505 if (SimplifyDemandedBits(IsFSHL ? Op0 : Op1, DemandedBits, DemandedElts, 1513 APInt Demanded0 = DemandedBits.lshr(IsFSHL ? Amt : (BitWidth - Amt)); 1514 APInt Demanded1 = DemandedBits << (IsFSHL ? (BitWidth - Amt) : Amt); 1533 APInt DemandedSrcBits = DemandedBits.reverseBits(); 1547 if (DemandedBits.isSignMask()) { 1567 if (DemandedBits.getActiveBits() <= ExVTBits) 1570 APInt InputDemandedBits = DemandedBits.getLoBits(ExVTBits); 1602 APInt MaskLo = DemandedBits.getLoBits(HalfBitWidth).trunc(HalfBitWidth); 1603 APInt MaskHi = DemandedBits.getHiBits(HalfBitWidth).trunc(HalfBitWidth); 1629 if (DemandedBits.getActiveBits() <= InBits) { 1643 APInt InDemandedBits = DemandedBits.trunc(InBits); 1662 if (DemandedBits.getActiveBits() <= InBits) { 1676 APInt InDemandedBits = DemandedBits.trunc(InBits); 1716 APInt InDemandedBits = DemandedBits.trunc(InBits); 1732 APInt TruncMask = DemandedBits.zext(OperandBitWidth); 1771 if (!(HighBits & DemandedBits)) { 1791 if (SimplifyDemandedBits(Op.getOperand(0), ~InMask | DemandedBits, Known, 1813 APInt DemandedSrcBits = DemandedBits; 1834 DemandedBits == APInt::getSignMask(Op.getValueSizeInBits()) && 1866 APInt Sub = DemandedBits.extractBits(NumSrcEltBits, Offset); 1893 DemandedSrcBits.insertBits(DemandedBits, Offset); 1925 unsigned DemandedBitsLZ = DemandedBits.countLeadingZeros(); 1932 ShrinkDemandedOp(Op, BitWidth, DemandedBits, TLO)) { 1984 if (SimplifyDemandedBitsForTargetNode(Op, DemandedBits, DemandedElts, 1997 if (DemandedBits.isSubsetOf(Known.Zero | Known.One)) {