diff options
author | Craig Topper <craig.topper@gmail.com> | 2017-04-23 03:45:59 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@gmail.com> | 2017-04-23 03:45:59 +0000 |
commit | ae9672c96d2dcad39ab9bc306a9f5e0b5ef0dfc1 (patch) | |
tree | 12c9c79d91e852d577a85ce396abd86355dd9ecc /llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp | |
parent | f6a29894a282458daae12aba906dbb0463dd7609 (diff) | |
download | bcm5719-llvm-ae9672c96d2dcad39ab9bc306a9f5e0b5ef0dfc1.tar.gz bcm5719-llvm-ae9672c96d2dcad39ab9bc306a9f5e0b5ef0dfc1.zip |
[APInt] Use ashInPlace where possible.
llvm-svn: 301101
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp')
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp b/llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp index 069fb5b9c09..ac3934da907 100644 --- a/llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp @@ -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 = d.ashr(ShAmt); + d.ashrInPlace(ShAmt); } // Calculate the multiplicative inverse, using Newton's method. |