forked from OSchip/llvm-project
Use SelectionDAG::getShiftAmountConstant(). NFCI.
This commit is contained in:
parent
2accdb6ae1
commit
c784e5451b
|
@ -28808,7 +28808,6 @@ void X86TargetLowering::ReplaceNodeResults(SDNode *N,
|
|||
return;
|
||||
}
|
||||
case ISD::ABS: {
|
||||
const TargetLowering &TLI = DAG.getTargetLoweringInfo();
|
||||
assert(N->getValueType(0) == MVT::i64 &&
|
||||
"Unexpected type (!= i64) on ABS.");
|
||||
MVT HalfT = MVT::i32;
|
||||
|
@ -28821,8 +28820,7 @@ void X86TargetLowering::ReplaceNodeResults(SDNode *N,
|
|||
DAG.getConstant(1, dl, HalfT));
|
||||
Tmp = DAG.getNode(
|
||||
ISD::SRA, dl, HalfT, Hi,
|
||||
DAG.getConstant(HalfT.getSizeInBits() - 1, dl,
|
||||
TLI.getShiftAmountTy(HalfT, DAG.getDataLayout())));
|
||||
DAG.getShiftAmountConstant(HalfT.getSizeInBits() - 1, HalfT, dl));
|
||||
Lo = DAG.getNode(ISD::UADDO, dl, VTList, Tmp, Lo);
|
||||
Hi = DAG.getNode(ISD::ADDCARRY, dl, VTList, Tmp, Hi,
|
||||
SDValue(Lo.getNode(), 1));
|
||||
|
|
Loading…
Reference in New Issue