Use APInt[] bit access to avoid "32-bit shift implicitly converted to 64 bits" MSVC warning (again). NFCI.

llvm-svn: 335457
This commit is contained in:
Simon Pilgrim 2018-06-25 11:46:24 +00:00
parent 9523ef0b29
commit 79e474bf46
1 changed files with 1 additions and 1 deletions

View File

@ -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);