summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/InstCombine/InstCombineSimplifyDemanded.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/InstCombineSimplifyDemanded.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/InstCombineSimplifyDemanded.cpp')
-rw-r--r--llvm/lib/Transforms/InstCombine/InstCombineSimplifyDemanded.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/InstCombine/InstCombineSimplifyDemanded.cpp b/llvm/lib/Transforms/InstCombine/InstCombineSimplifyDemanded.cpp
index 2f6e411345f..c5812abb792 100644
--- a/llvm/lib/Transforms/InstCombine/InstCombineSimplifyDemanded.cpp
+++ b/llvm/lib/Transforms/InstCombine/InstCombineSimplifyDemanded.cpp
@@ -1562,7 +1562,7 @@ Value *InstCombiner::SimplifyDemandedVectorElts(Value *V, APInt DemandedElts,
for (unsigned Lane = 0; Lane != NumLanes; ++Lane) {
APInt LaneElts = OpUndefElts.lshr(InnerVWidthPerLane * Lane);
LaneElts = LaneElts.getLoBits(InnerVWidthPerLane);
- LaneElts = LaneElts.shl(InnerVWidthPerLane * (2 * Lane + OpNum));
+ LaneElts <<= InnerVWidthPerLane * (2 * Lane + OpNum);
UndefElts |= LaneElts;
}
}
OpenPOWER on IntegriCloud