[llvm] [ScheduleDAG] Allow disabling the SchedModel / Itineraries during Scheduling (PR #138057)
Jeffrey Byrnes via llvm-commits
llvm-commits at lists.llvm.org
Thu May 1 11:12:53 PDT 2025
================
@@ -40,19 +40,23 @@ static cl::opt<bool> ForceEnableIntervals(
cl::desc("Force the use of resource intervals in the schedule model"));
bool TargetSchedModel::hasInstrSchedModel() const {
- return EnableSchedModel && SchedModel.hasInstrSchedModel();
+ return EnableSchedModel && SchedModel.hasInstrSchedModel() &&
+ !DisableItinerariesAndSchedModel;
}
bool TargetSchedModel::hasInstrItineraries() const {
- return EnableSchedItins && !InstrItins.isEmpty();
+ return EnableSchedItins && !InstrItins.isEmpty() &&
+ !DisableItinerariesAndSchedModel;
----------------
jrbyrnes wrote:
Stale comment
https://github.com/llvm/llvm-project/pull/138057
More information about the llvm-commits
mailing list