[PATCH] D109705: AMDGPU: Don't consider whether amdgpu-flat-work-group-size was set
Matt Arsenault via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Sep 13 09:52:28 PDT 2021
arsenm created this revision.
arsenm added reviewers: rampitec, kzhuravl, t-tye.
Herald added subscribers: foad, kerbowa, hiraditya, tpr, dstuttard, yaxunl, nhaehnle, jvesely.
arsenm requested review of this revision.
Herald added a subscriber: wdng.
Herald added a project: LLVM.
It should be semantically identical if it was set to the same value as
the default.
https://reviews.llvm.org/D109705
Files:
llvm/lib/Target/AMDGPU/AMDGPUSubtarget.cpp
Index: llvm/lib/Target/AMDGPU/AMDGPUSubtarget.cpp
===================================================================
--- llvm/lib/Target/AMDGPU/AMDGPUSubtarget.cpp
+++ llvm/lib/Target/AMDGPU/AMDGPUSubtarget.cpp
@@ -547,8 +547,6 @@
unsigned MinImpliedByFlatWorkGroupSize =
getWavesPerEUForWorkGroup(FlatWorkGroupSizes.second);
Default.first = MinImpliedByFlatWorkGroupSize;
- bool RequestedFlatWorkGroupSize =
- F.hasFnAttribute("amdgpu-flat-work-group-size");
// Requested minimum/maximum number of waves per execution unit.
std::pair<unsigned, unsigned> Requested = AMDGPU::getIntegerPairAttribute(
@@ -565,8 +563,7 @@
// Make sure requested values are compatible with values implied by requested
// minimum/maximum flat work group sizes.
- if (RequestedFlatWorkGroupSize &&
- Requested.first < MinImpliedByFlatWorkGroupSize)
+ if (Requested.first < MinImpliedByFlatWorkGroupSize)
return Default;
return Requested;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D109705.372284.patch
Type: text/x-patch
Size: 967 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210913/6ddea76b/attachment.bin>
More information about the llvm-commits
mailing list