Skip to content

Commit b5edcd1

Browse files
committed
Remove fixup of 0
1 parent 1a048fa commit b5edcd1

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

llvm/lib/Target/AMDGPU/AMDGPUAttributor.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -878,12 +878,6 @@ struct AAAMDMaxNumWorkgroups
878878

879879
SmallVector<unsigned> MaxNumWorkgroups = InfoCache.getMaxNumWorkGroups(*F);
880880

881-
// FIXME: What is the interpretation of 0?
882-
for (unsigned &Entry : MaxNumWorkgroups) {
883-
if (Entry == 0)
884-
Entry = std::numeric_limits<uint32_t>::max();
885-
}
886-
887881
X.takeKnownMinimum(MaxNumWorkgroups[0]);
888882
Y.takeKnownMinimum(MaxNumWorkgroups[1]);
889883
Z.takeKnownMinimum(MaxNumWorkgroups[2]);

0 commit comments

Comments
 (0)