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

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 26 06:16:22 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"))
----------------
arsenm wrote:

probably should avoid the word "enable", and this isn't very flexible in terms of selecting from the chain options we have here. How about an attribute with a named strategy? 

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


More information about the llvm-commits mailing list