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

llvm-svn: 335454
This commit is contained in:
Simon Pilgrim 2018-06-25 11:38:27 +00:00
parent afcd983a49
commit 3a0e13f347
1 changed files with 1 additions and 1 deletions

View File

@ -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++;
}