forked from OSchip/llvm-project
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:
parent
afcd983a49
commit
3a0e13f347
|
@ -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++;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue