summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/SelectionDAG/ScheduleDAGRRList.cpp
diff options
context:
space:
mode:
authorEric Christopher <echristo@gmail.com>2014-06-13 22:38:52 +0000
committerEric Christopher <echristo@gmail.com>2014-06-13 22:38:52 +0000
commitf047bfd115b50e97c357785f9632ee79d89295bc (patch)
tree67b638acae7e971165b876a3f11ce209d5ed1566 /llvm/lib/CodeGen/SelectionDAG/ScheduleDAGRRList.cpp
parent170ebcf07fa1b97dcb63bfc3d8c3f04a61389494 (diff)
downloadbcm5719-llvm-f047bfd115b50e97c357785f9632ee79d89295bc.tar.gz
bcm5719-llvm-f047bfd115b50e97c357785f9632ee79d89295bc.zip
The hazard recognizer only needs a subtarget, not a target machine
so make it take one. Fix up all users accordingly. llvm-svn: 210948
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/ScheduleDAGRRList.cpp')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/ScheduleDAGRRList.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/ScheduleDAGRRList.cpp b/llvm/lib/CodeGen/SelectionDAG/ScheduleDAGRRList.cpp
index 78ec4df95f5..13cfae7515b 100644
--- a/llvm/lib/CodeGen/SelectionDAG/ScheduleDAGRRList.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/ScheduleDAGRRList.cpp
@@ -170,7 +170,8 @@ public:
if (DisableSchedCycles || !NeedLatency)
HazardRec = new ScheduleHazardRecognizer();
else
- HazardRec = tm.getInstrInfo()->CreateTargetHazardRecognizer(&tm, this);
+ HazardRec = tm.getInstrInfo()->CreateTargetHazardRecognizer(
+ tm.getSubtargetImpl(), this);
}
~ScheduleDAGRRList() {
OpenPOWER on IntegriCloud