aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/WindowScheduler.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib/CodeGen/WindowScheduler.cpp')
-rw-r--r--llvm/lib/CodeGen/WindowScheduler.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/WindowScheduler.cpp b/llvm/lib/CodeGen/WindowScheduler.cpp
index e7fc0d9..379740ca 100644
--- a/llvm/lib/CodeGen/WindowScheduler.cpp
+++ b/llvm/lib/CodeGen/WindowScheduler.cpp
@@ -45,6 +45,7 @@
#include "llvm/Support/CommandLine.h"
#include "llvm/Support/Debug.h"
#include "llvm/Support/TimeProfiler.h"
+#include "llvm/Target/TargetMachine.h"
using namespace llvm;
@@ -167,7 +168,7 @@ WindowScheduler::createMachineScheduler(bool OnlyBuildGraph) {
? new ScheduleDAGMI(
Context, std::make_unique<PostGenericScheduler>(Context),
true)
- : Context->PassConfig->createMachineScheduler(Context);
+ : Context->TM->createMachineScheduler(Context);
}
bool WindowScheduler::initialize() {