Skip to content

Commit 1894d97

Browse files
committed
Just use getWavefrontSizeLog2
1 parent f1172c1 commit 1894d97

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Target/AMDGPU/AMDGPUInstCombineIntrinsic.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -456,7 +456,7 @@ static bool isTriviallyUniform(const Use &U) {
456456
bool GCNTTIImpl::simplifyDemandedLaneMaskArg(InstCombiner &IC,
457457
IntrinsicInst &II,
458458
unsigned LaneArgIdx) const {
459-
unsigned MaskBits = ST->isWaveSizeKnown() && ST->isWave32() ? 5 : 6;
459+
unsigned MaskBits = ST->getWavefrontSizeLog2();
460460
APInt DemandedMask(32, maskTrailingOnes<unsigned>(MaskBits));
461461

462462
KnownBits Known(32);

0 commit comments

Comments
 (0)