[llvm] [AMDGPU] Add MaxMemoryClauseSchedStrategy (PR #114957)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Tue Dec 3 06:47:35 PST 2024
================
@@ -1287,9 +1309,18 @@ ScheduleDAGInstrs *GCNPassConfig::createMachineScheduler(
if (ST.enableSIScheduler())
return createSIMachineScheduler(C);
- if (EnableMaxIlpSchedStrategy)
+ Attribute SchedStrategyAttr =
+ C->MF->getFunction().getFnAttribute("amdgpu-sched-strategy");
+ StringRef SchedStrategy =
+ SchedStrategyAttr.isValid() ? SchedStrategyAttr.getValueAsString() : "";
+
+ if (EnableMaxIlpSchedStrategy || SchedStrategy == "max-ilp")
----------------
arsenm wrote:
Treat the option as an alternative source to the attribute?
https://github.com/llvm/llvm-project/pull/114957
More information about the llvm-commits
mailing list