summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Pilgrim <llvm-dev@redking.me.uk>2018-06-25 11:46:24 +0000
committerSimon Pilgrim <llvm-dev@redking.me.uk>2018-06-25 11:46:24 +0000
commit79e474bf4639f5c0ccb100e0ca1ad52129356b9b (patch)
treecd9ce1e5096665bf4a3b8d2505e5ca36d43fded6
parent9523ef0b290f0779f82f086636899fceeae59da4 (diff)
downloadbcm5719-llvm-79e474bf4639f5c0ccb100e0ca1ad52129356b9b.tar.gz
bcm5719-llvm-79e474bf4639f5c0ccb100e0ca1ad52129356b9b.zip
Use APInt[] bit access to avoid "32-bit shift implicitly converted to 64 bits" MSVC warning (again). NFCI.
llvm-svn: 335457
-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 b03612883ea..2a31ac9540b 100644
--- a/llvm/lib/Transforms/InstCombine/InstCombineSimplifyDemanded.cpp
+++ b/llvm/lib/Transforms/InstCombine/InstCombineSimplifyDemanded.cpp
@@ -1012,7 +1012,7 @@ Value *InstCombiner::simplifyAMDGCNMemoryIntrinsicDemanded(IntrinsicInst *II,
SmallVector<uint32_t, 8> EltMask;
unsigned NewLoadIdx = 0;
for (unsigned OrigLoadIdx = 0; OrigLoadIdx < VWidth; ++OrigLoadIdx) {
- if (!!(DemandedElts & (1 << OrigLoadIdx)))
+ if (!!DemandedElts[OrigLoadIdx])
EltMask.push_back(NewLoadIdx++);
else
EltMask.push_back(NewNumElts);
OpenPOWER on IntegriCloud