summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms
diff options
context:
space:
mode:
authorSimon Pilgrim <llvm-dev@redking.me.uk>2018-06-25 11:38:27 +0000
committerSimon Pilgrim <llvm-dev@redking.me.uk>2018-06-25 11:38:27 +0000
commit3a0e13f347cdbd69454423a7ff48f731b06ba54d (patch)
treeafbd72b9d223df787dae423e03c016050ed16cc8 /llvm/lib/Transforms
parentafcd983a496ca6adc764ae55d2f2c4ae90a04d1d (diff)
downloadbcm5719-llvm-3a0e13f347cdbd69454423a7ff48f731b06ba54d.tar.gz
bcm5719-llvm-3a0e13f347cdbd69454423a7ff48f731b06ba54d.zip
Use APInt[] bit access to avoid "32-bit shift implicitly converted to 64 bits" MSVC warning. NFCI.
llvm-svn: 335454
Diffstat (limited to 'llvm/lib/Transforms')
-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 bef2532da97..b03612883ea 100644
--- a/llvm/lib/Transforms/InstCombine/InstCombineSimplifyDemanded.cpp
+++ b/llvm/lib/Transforms/InstCombine/InstCombineSimplifyDemanded.cpp
@@ -949,7 +949,7 @@ Value *InstCombiner::simplifyAMDGCNMemoryIntrinsicDemanded(IntrinsicInst *II,
for (unsigned SrcIdx = 0; SrcIdx < 4; ++SrcIdx) {
const unsigned Bit = 1 << SrcIdx;
if (!!(DMaskVal & Bit)) {
- if (!!(DemandedElts & (1 << OrigLoadIdx)))
+ if (!!DemandedElts[OrigLoadIdx])
NewDMaskVal |= Bit;
OrigLoadIdx++;
}
OpenPOWER on IntegriCloud