[libcxx-commits] [libcxx] [AMDGPU][MachineScheduler] Alternative way to control excess RP. (PR #68004)

Jeffrey Byrnes via libcxx-commits libcxx-commits at lists.llvm.org
Fri Oct 20 13:24:31 PDT 2023


================
@@ -1117,16 +1118,23 @@ bool OccInitialScheduleStage::shouldRevertScheduling(unsigned WavesAfter) {
 bool UnclusteredHighRPStage::shouldRevertScheduling(unsigned WavesAfter) {
   // If RP is not reduced in the unclustered reschedule stage, revert to the
   // old schedule.
-  if ((WavesAfter <= PressureBefore.getOccupancy(ST) &&
-       mayCauseSpilling(WavesAfter)) ||
-      GCNSchedStage::shouldRevertScheduling(WavesAfter)) {
-    LLVM_DEBUG(dbgs() << "Unclustered reschedule did not help.\n");
-    return true;
-  }
+  if (DAG.RegionsWithExcessRP[RegionIdx]) {
----------------
jrbyrnes wrote:

Should still revert if occupancy has dropped (GCNSchedStage::shouldRevertScheduling)?

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


More information about the libcxx-commits mailing list