diff options
author | Evan Cheng <evan.cheng@apple.com> | 2010-05-19 20:19:50 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2010-05-19 20:19:50 +0000 |
commit | 211ffa13519cadfb7f9baf4c8447fa055bf38fe8 (patch) | |
tree | bc37d5def2f4871b5a41e236e6c4f670db1fe2f5 /lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp | |
parent | 343735288798bbd1cd2ed2750fa6cd323f12c26c (diff) | |
download | external_llvm-211ffa13519cadfb7f9baf4c8447fa055bf38fe8.zip external_llvm-211ffa13519cadfb7f9baf4c8447fa055bf38fe8.tar.gz external_llvm-211ffa13519cadfb7f9baf4c8447fa055bf38fe8.tar.bz2 |
Code refactoring: pull SchedPreference enum from TargetLowering.h to TargetMachine.h and put it in its own namespace.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@104147 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp')
-rw-r--r-- | lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp b/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp index 5988688..76e09e7 100644 --- a/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp +++ b/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp @@ -132,10 +132,10 @@ namespace llvm { if (OptLevel == CodeGenOpt::None) return createFastDAGScheduler(IS, OptLevel); - if (TLI.getSchedulingPreference() == TargetLowering::SchedulingForLatency) + if (TLI.getSchedulingPreference() == Sched::Latency) return createTDListDAGScheduler(IS, OptLevel); - assert(TLI.getSchedulingPreference() == - TargetLowering::SchedulingForRegPressure && "Unknown sched type!"); + assert(TLI.getSchedulingPreference() == Sched::RegPressure && + "Unknown sched type!"); return createBURRListDAGScheduler(IS, OptLevel); } } |