[llvm] [AMDGPU] Introduce ABI occupancy for object linking (PR #199475)

Gheorghe-Teodor Bercea via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 8 07:04:42 PDT 2026


================
@@ -537,20 +574,17 @@ void AMDGPUAsmPrinter::validateMCResourceInfo(Function &F) {
         TryGetMCExprValue(NumVgprSymbol->getVariableValue(), NumVgpr) &&
         TryGetMCExprValue(NumAgprSymbol->getVariableValue(), NumAgpr)) {
       const SIMachineFunctionInfo &MFI = *MF->getInfo<SIMachineFunctionInfo>();
-      unsigned MaxWaves = MFI.getMaxWavesPerEU();
+      unsigned MaxWaves = STM.getWavesPerEU(F).second;
----------------
doru1004 wrote:

Isn't this the same as `MFI.getMaxWavesPerEU()` ? If not, maybe an explanation as to why not?

https://github.com/llvm/llvm-project/pull/199475


More information about the llvm-commits mailing list