forked from OSchip/llvm-project
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:
parent
9523ef0b29
commit
79e474bf46
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue