• Home
  • Raw
  • Download

Lines Matching refs:NewMask

437   APInt NewMask = DemandedMask;  in SimplifyDemandedBits()  local
454 NewMask = APInt::getAllOnesValue(BitWidth); in SimplifyDemandedBits()
481 if ((LHSZero & NewMask) == (~RHSC->getAPIntValue() & NewMask)) in SimplifyDemandedBits()
485 if (TLO.ShrinkDemandedConstant(Op, ~LHSZero & NewMask)) in SimplifyDemandedBits()
489 if (SimplifyDemandedBits(Op.getOperand(1), NewMask, KnownZero, in SimplifyDemandedBits()
493 if (SimplifyDemandedBits(Op.getOperand(0), ~KnownZero & NewMask, in SimplifyDemandedBits()
500 if ((NewMask & ~KnownZero2 & KnownOne) == (~KnownZero2 & NewMask)) in SimplifyDemandedBits()
502 if ((NewMask & ~KnownZero & KnownOne2) == (~KnownZero & NewMask)) in SimplifyDemandedBits()
505 if ((NewMask & (KnownZero|KnownZero2)) == NewMask) in SimplifyDemandedBits()
508 if (TLO.ShrinkDemandedConstant(Op, ~KnownZero2 & NewMask)) in SimplifyDemandedBits()
511 if (TLO.ShrinkDemandedOp(Op, BitWidth, NewMask, dl)) in SimplifyDemandedBits()
520 if (SimplifyDemandedBits(Op.getOperand(1), NewMask, KnownZero, in SimplifyDemandedBits()
524 if (SimplifyDemandedBits(Op.getOperand(0), ~KnownOne & NewMask, in SimplifyDemandedBits()
531 if ((NewMask & ~KnownOne2 & KnownZero) == (~KnownOne2 & NewMask)) in SimplifyDemandedBits()
533 if ((NewMask & ~KnownOne & KnownZero2) == (~KnownOne & NewMask)) in SimplifyDemandedBits()
537 if ((NewMask & ~KnownZero & KnownOne2) == (~KnownZero & NewMask)) in SimplifyDemandedBits()
539 if ((NewMask & ~KnownZero2 & KnownOne) == (~KnownZero2 & NewMask)) in SimplifyDemandedBits()
542 if (TLO.ShrinkDemandedConstant(Op, NewMask)) in SimplifyDemandedBits()
545 if (TLO.ShrinkDemandedOp(Op, BitWidth, NewMask, dl)) in SimplifyDemandedBits()
554 if (SimplifyDemandedBits(Op.getOperand(1), NewMask, KnownZero, in SimplifyDemandedBits()
558 if (SimplifyDemandedBits(Op.getOperand(0), NewMask, KnownZero2, in SimplifyDemandedBits()
565 if ((KnownZero & NewMask) == NewMask) in SimplifyDemandedBits()
567 if ((KnownZero2 & NewMask) == NewMask) in SimplifyDemandedBits()
570 if (TLO.ShrinkDemandedOp(Op, BitWidth, NewMask, dl)) in SimplifyDemandedBits()
576 if ((NewMask & ~KnownZero & ~KnownZero2) == 0) in SimplifyDemandedBits()
591 if ((NewMask & (KnownZero|KnownOne)) == NewMask) { // all known on one side in SimplifyDemandedBits()
594 SDValue ANDC = TLO.DAG.getConstant(~KnownOne & NewMask, dl, VT); in SimplifyDemandedBits()
604 APInt Expanded = C->getAPIntValue() | (~NewMask); in SimplifyDemandedBits()
615 } else if (TLO.ShrinkDemandedConstant(Op, NewMask)) { in SimplifyDemandedBits()
624 if (SimplifyDemandedBits(Op.getOperand(2), NewMask, KnownZero, in SimplifyDemandedBits()
627 if (SimplifyDemandedBits(Op.getOperand(1), NewMask, KnownZero2, in SimplifyDemandedBits()
634 if (TLO.ShrinkDemandedConstant(Op, NewMask)) in SimplifyDemandedBits()
642 if (SimplifyDemandedBits(Op.getOperand(3), NewMask, KnownZero, in SimplifyDemandedBits()
645 if (SimplifyDemandedBits(Op.getOperand(2), NewMask, KnownZero2, in SimplifyDemandedBits()
652 if (TLO.ShrinkDemandedConstant(Op, NewMask)) in SimplifyDemandedBits()
673 if (ShAmt && (NewMask & APInt::getLowBitsSet(BitWidth, ShAmt)) == 0) { in SimplifyDemandedBits()
690 if (SimplifyDemandedBits(InOp, NewMask.lshr(ShAmt), in SimplifyDemandedBits()
700 if (ShAmt < InnerBits && NewMask.lshr(InnerBits) == 0 && in SimplifyDemandedBits()
726 NewMask.lshr(InnerBits - InnerShAmt + ShAmt) == 0 && in SimplifyDemandedBits()
727 NewMask.trunc(ShAmt) == 0) { in SimplifyDemandedBits()
757 APInt InDemandedMask = (NewMask << ShAmt); in SimplifyDemandedBits()
769 if (ShAmt && (NewMask & APInt::getHighBitsSet(VTSize, ShAmt)) == 0) { in SimplifyDemandedBits()
802 if (NewMask == 1) in SimplifyDemandedBits()
815 APInt InDemandedMask = (NewMask << ShAmt); in SimplifyDemandedBits()
825 if (HighBits.intersects(NewMask)) in SimplifyDemandedBits()
840 if (KnownZero.intersects(SignBit) || (HighBits & ~NewMask) == HighBits) { in SimplifyDemandedBits()
848 int Log2 = NewMask.exactLogBase2(); in SimplifyDemandedBits()
868 if (MsbMask == NewMask) { in SimplifyDemandedBits()
898 if ((NewBits & NewMask) == 0) in SimplifyDemandedBits()
906 NewMask; in SimplifyDemandedBits()
938 APInt MaskLo = NewMask.getLoBits(HalfBitWidth).trunc(HalfBitWidth); in SimplifyDemandedBits()
939 APInt MaskHi = NewMask.getHiBits(HalfBitWidth).trunc(HalfBitWidth); in SimplifyDemandedBits()
962 APInt InMask = NewMask.trunc(OperandBitWidth); in SimplifyDemandedBits()
966 APInt::getHighBitsSet(BitWidth, BitWidth - OperandBitWidth) & NewMask; in SimplifyDemandedBits()
967 if (!NewBits.intersects(NewMask)) in SimplifyDemandedBits()
986 APInt NewBits = ~InMask & NewMask; in SimplifyDemandedBits()
996 APInt InDemandedBits = InMask & NewMask; in SimplifyDemandedBits()
1025 APInt InMask = NewMask.trunc(OperandBitWidth); in SimplifyDemandedBits()
1039 APInt TruncMask = NewMask.zext(OperandBitWidth); in SimplifyDemandedBits()
1074 if (ShAmt->getZExtValue() < BitWidth && !(HighBits & NewMask)) { in SimplifyDemandedBits()
1098 if (SimplifyDemandedBits(Op.getOperand(0), ~InMask | NewMask, in SimplifyDemandedBits()
1103 KnownZero |= ~InMask & NewMask; in SimplifyDemandedBits()
1112 NewMask == APInt::getSignBit(Op.getValueType().getSizeInBits()) && in SimplifyDemandedBits()
1140 BitWidth - NewMask.countLeadingZeros()); in SimplifyDemandedBits()
1148 if (TLO.ShrinkDemandedOp(Op, BitWidth, NewMask, dl)) in SimplifyDemandedBits()
1160 if ((NewMask & (KnownZero|KnownOne)) == NewMask) { in SimplifyDemandedBits()