[llvm] [AMDGPU] Move EU and Wave Queries into TargetParser (PR #215681)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Wed Aug 26 03:20:07 PDT 2026
================
@@ -426,9 +425,9 @@ unsigned AMDGPU::getSGPRAllocGranule(Triple::SubArchType SubArch) {
unsigned AMDGPU::getWorkGroupSIMDs(GPUKind AK, bool FullSIMDMode) {
const GPUInfo *Info = getAMDGPUInfo(AK);
- if (FullSIMDMode || !Info)
- return FullSIMDs;
- return Info->HalfSIMDs;
+ if (FullSIMDMode || !Info || !(Info->ArchFeatures & FEATURE_WGP))
----------------
arsenm wrote:
Avoid introducing new uses of ArchFeatures, I am trying to delete it
https://github.com/llvm/llvm-project/pull/215681
More information about the llvm-commits
mailing list