diff options
| author | Renato Golin <renato.golin@linaro.org> | 2017-04-23 12:15:30 +0000 |
|---|---|---|
| committer | Renato Golin <renato.golin@linaro.org> | 2017-04-23 12:15:30 +0000 |
| commit | 4abfb3d7414e616cd84034735893528f6ca0c35a (patch) | |
| tree | bae49d1d9a15f3a024d91fd1d2e177f41d8a3f32 /llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp | |
| parent | cc4a9120f6944a48d1df4c676ee77af3904b4442 (diff) | |
| download | bcm5719-llvm-4abfb3d7414e616cd84034735893528f6ca0c35a.tar.gz bcm5719-llvm-4abfb3d7414e616cd84034735893528f6ca0c35a.zip | |
Revert "[APInt] Fix a few places that use APInt::getRawData to operate within the normal API."
This reverts commit r301105, 4, 3 and 1, as a follow up of the previous
revert, which broke even more bots.
For reference:
Revert "[APInt] Use operator<<= where possible. NFC"
Revert "[APInt] Use operator<<= instead of shl where possible. NFC"
Revert "[APInt] Use ashInPlace where possible."
PR32754.
llvm-svn: 301111
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 16ad1a303e8..069fb5b9c09 100644 --- a/llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp @@ -1714,7 +1714,7 @@ SDValue TargetLowering::SimplifySetCC(EVT VT, SDValue N0, SDValue N1, bestWidth = width; break; } - newMask <<= width; + newMask = newMask << width; } } } @@ -2981,7 +2981,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.ashrInPlace(ShAmt); + d = d.ashr(ShAmt); } // Calculate the multiplicative inverse, using Newton's method. |

