forked from OSchip/llvm-project
[APInt] Use operator<<= where possible. NFC
llvm-svn: 301104
This commit is contained in:
parent
5f68af0806
commit
cdd5ae6676
|
@ -2323,8 +2323,8 @@ void SelectionDAG::computeKnownBits(SDValue Op, APInt &KnownZero,
|
|||
if (const APInt *ShAmt = getValidShiftAmountConstant(Op)) {
|
||||
computeKnownBits(Op.getOperand(0), KnownZero, KnownOne, DemandedElts,
|
||||
Depth + 1);
|
||||
KnownZero = KnownZero << *ShAmt;
|
||||
KnownOne = KnownOne << *ShAmt;
|
||||
KnownZero <<= *ShAmt;
|
||||
KnownOne <<= *ShAmt;
|
||||
// Low bits are known zero.
|
||||
KnownZero.setLowBits(ShAmt->getZExtValue());
|
||||
}
|
||||
|
|
|
@ -1714,7 +1714,7 @@ SDValue TargetLowering::SimplifySetCC(EVT VT, SDValue N0, SDValue N1,
|
|||
bestWidth = width;
|
||||
break;
|
||||
}
|
||||
newMask = newMask << width;
|
||||
newMask <<= width;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -26717,8 +26717,8 @@ void X86TargetLowering::computeKnownBitsForTargetNode(const SDValue Op,
|
|||
DAG.computeKnownBits(Op.getOperand(0), KnownZero, KnownOne, Depth + 1);
|
||||
unsigned ShAmt = ShiftImm->getZExtValue();
|
||||
if (Opc == X86ISD::VSHLI) {
|
||||
KnownZero = KnownZero << ShAmt;
|
||||
KnownOne = KnownOne << ShAmt;
|
||||
KnownZero <<= ShAmt;
|
||||
KnownOne <<= ShAmt;
|
||||
// Low bits are known zero.
|
||||
KnownZero.setLowBits(ShAmt);
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue