diff options
author | Craig Topper <craig.topper@gmail.com> | 2017-04-28 03:36:24 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@gmail.com> | 2017-04-28 03:36:24 +0000 |
commit | 24e71017aa3a062e6c2b055038ab9ed0ad2d35ae (patch) | |
tree | 461d640d885493861683e8350040434e9a912a74 /llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp | |
parent | f74d946624f30d60fd3f90a9545a455308931c32 (diff) | |
download | bcm5719-llvm-24e71017aa3a062e6c2b055038ab9ed0ad2d35ae.tar.gz bcm5719-llvm-24e71017aa3a062e6c2b055038ab9ed0ad2d35ae.zip |
[APInt] Use inplace shift methods where possible. NFCI
llvm-svn: 301612
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp')
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp b/llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp index 136dec873cb..e9d71215f38 100644 --- a/llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp @@ -1721,7 +1721,7 @@ SDValue TargetLowering::SimplifySetCC(EVT VT, SDValue N0, SDValue N1, bestWidth = width; break; } - newMask = newMask << width; + newMask <<= width; } } } @@ -2988,7 +2988,7 @@ static SDValue BuildExactSDIV(const TargetLowering &TLI, SDValue Op1, APInt d, Flags.setExact(true); Op1 = DAG.getNode(ISD::SRA, dl, Op1.getValueType(), Op1, Amt, &Flags); Created.push_back(Op1.getNode()); - d = d.ashr(ShAmt); + d.ashrInPlace(ShAmt); } // Calculate the multiplicative inverse, using Newton's method. |