summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@gmail.com>2017-04-28 03:36:24 +0000
committerCraig Topper <craig.topper@gmail.com>2017-04-28 03:36:24 +0000
commit24e71017aa3a062e6c2b055038ab9ed0ad2d35ae (patch)
tree461d640d885493861683e8350040434e9a912a74 /llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp
parentf74d946624f30d60fd3f90a9545a455308931c32 (diff)
downloadbcm5719-llvm-24e71017aa3a062e6c2b055038ab9ed0ad2d35ae.tar.gz
bcm5719-llvm-24e71017aa3a062e6c2b055038ab9ed0ad2d35ae.zip
[APInt] Use inplace shift methods where possible. NFCI
llvm-svn: 301612
Diffstat (limited to 'llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp')
-rw-r--r--llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp b/llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp
index 597f1d95806..e9286b1bf17 100644
--- a/llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp
+++ b/llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp
@@ -379,7 +379,7 @@ static Value *simplifyX86immShift(const IntrinsicInst &II,
for (unsigned i = 0; i != NumSubElts; ++i) {
unsigned SubEltIdx = (NumSubElts - 1) - i;
auto SubElt = cast<ConstantInt>(CDV->getElementAsConstant(SubEltIdx));
- Count = Count.shl(BitWidth);
+ Count <<= BitWidth;
Count |= SubElt->getValue().zextOrTrunc(64);
}
}
OpenPOWER on IntegriCloud