Skip to content

Commit f4f1277

Browse files
Removed unnecessary temp varaible for holding wave front size
1 parent bc961db commit f4f1277

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

llvm/lib/Target/AMDGPU/AMDGPUInstCombineIntrinsic.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1354,8 +1354,7 @@ GCNTTIImpl::instCombineIntrinsic(InstCombiner &IC, IntrinsicInst &II) const {
13541354
break;
13551355

13561356
// Skip if ballot width doesn't match wave size.
1357-
unsigned WavefrontSize = ST->getWavefrontSize();
1358-
if (WavefrontSize != II.getType()->getIntegerBitWidth())
1357+
if (ST->getWavefrontSize() != II.getType()->getIntegerBitWidth())
13591358
break;
13601359

13611360
for (auto &AssumeVH : IC.getAssumptionCache().assumptionsFor(&II)) {

0 commit comments

Comments
 (0)