summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/InstCombine/InstCombineCalls.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/Transforms/InstCombine/InstCombineCalls.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/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 e7aa1a45737..20179bcf114 100644
--- a/llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp
+++ b/llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp
@@ -378,7 +378,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