summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@gmail.com>2017-04-23 05:18:31 +0000
committerCraig Topper <craig.topper@gmail.com>2017-04-23 05:18:31 +0000
commit5f68af08066b28be2cb12befe0067cbafa0f8ac2 (patch)
tree0fda37a49bd5b6de24c590fa89556cf758394594 /llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
parent5da709025629fcc90a37cfd942632c98a3c4de94 (diff)
downloadbcm5719-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.cpp2
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()));
OpenPOWER on IntegriCloud