[llvm] [AMDGPU] Add MaxMemoryClauseSchedStrategy (PR #114957)

via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 26 22:05:45 PST 2024


================
@@ -1290,6 +1312,11 @@ ScheduleDAGInstrs *GCNPassConfig::createMachineScheduler(
   if (EnableMaxIlpSchedStrategy)
     return createGCNMaxILPMachineScheduler(C);
 
+  if (EnableMaxMemoryClauseSchedStrategy ||
+      C->MF->getFunction().hasFnAttribute(
+          "amdgpu-enable-max-memory-clause-scheduling-strategy"))
----------------
ruiling wrote:

The suggestion sounds pretty good. I have changed the attribute to named strategy.

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


More information about the llvm-commits mailing list