diff options
author | Craig Topper <craig.topper@gmail.com> | 2017-04-23 05:18:31 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@gmail.com> | 2017-04-23 05:18:31 +0000 |
commit | 5f68af08066b28be2cb12befe0067cbafa0f8ac2 (patch) | |
tree | 0fda37a49bd5b6de24c590fa89556cf758394594 /llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp | |
parent | 5da709025629fcc90a37cfd942632c98a3c4de94 (diff) | |
download | bcm5719-llvm-5f68af08066b28be2cb12befe0067cbafa0f8ac2.tar.gz bcm5719-llvm-5f68af08066b28be2cb12befe0067cbafa0f8ac2.zip |
[APInt] Use operator<<= instead of shl where possible. NFC
llvm-svn: 301103
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp')
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp index 4702d63cb61..80df6b862e6 100644 --- a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp @@ -5343,7 +5343,7 @@ SDValue DAGCombiner::visitSHL(SDNode *N) { APInt Mask = APInt::getHighBitsSet(OpSizeInBits, OpSizeInBits - c1); SDValue Shift; if (c2 > c1) { - Mask = Mask.shl(c2 - c1); + Mask <<= c2 - c1; SDLoc DL(N); Shift = DAG.getNode(ISD::SHL, DL, VT, N0.getOperand(0), DAG.getConstant(c2 - c1, DL, N1.getValueType())); |