[llvm] [AMDGPU] Reset minOccupancy if unclustered schedule was not run for any region. (PR #162025)

Dhruva Chakrabarti via llvm-commits llvm-commits at lists.llvm.org
Fri Oct 17 18:11:02 PDT 2025


================
@@ -966,6 +966,7 @@ void GCNScheduleDAGMILive::runSchedStages() {
     if (!Stage->initGCNSchedStage())
       continue;
 
+    bool IsAnyRegionScheduled = false;
----------------
dhruvachak wrote:

> Can you make this part of the `UnclusteredHighRPStage`'s state instead of the scheduler itself? I think it makes more sense since the base `finalizeGCNSchedStage` implementation doesn't use this and neither do the other stages.

Agreed. Thanks for the suggestion. I moved the tracking to UnclusteredHighRPStage in the updated patch. 

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


More information about the llvm-commits mailing list