[llvm-branch-commits] [clang] [llvm] [AMDGPU][Attributor] Rework update of `AAAMDWavesPerEU` (PR #123995)

Shilei Tian via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Mon Mar 24 18:18:23 PDT 2025


================
@@ -1425,8 +1453,14 @@ static bool runImpl(Module &M, AnalysisGetter &AG, TargetMachine &TM,
     }
   }
 
-  ChangeStatus Change = A.run();
-  return Change == ChangeStatus::CHANGED;
+  bool Changed = A.run() == ChangeStatus::CHANGED;
+
+  if (Changed && (LTOPhase == ThinOrFullLTOPhase::None ||
+                  LTOPhase == ThinOrFullLTOPhase::FullLTOPostLink ||
+                  LTOPhase == ThinOrFullLTOPhase::ThinLTOPostLink))
+    checkWavesPerEU(M, TM);
----------------
shiltian wrote:

> This isn't running as part of the attribute run? Why isn't this part of manifest?

So first, the manifest of the two AAs might not run. Second, there is a dependency between the two AAs and the order of the manifest call is undetermined.

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


More information about the llvm-branch-commits mailing list