summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/PostRASchedulerList.cpp
diff options
context:
space:
mode:
authorMatthias Braun <matze@braunis.de>2015-06-13 03:42:16 +0000
committerMatthias Braun <matze@braunis.de>2015-06-13 03:42:16 +0000
commit39a2afc9417667902511b9c082d639e95d76e38f (patch)
tree24dad3ac079be2814c5ac481474981029ead2ac7 /llvm/lib/CodeGen/PostRASchedulerList.cpp
parent88e213159a3d0650db1a1ca4cd840e4bd87b12d2 (diff)
downloadbcm5719-llvm-39a2afc9417667902511b9c082d639e95d76e38f.tar.gz
bcm5719-llvm-39a2afc9417667902511b9c082d639e95d76e38f.zip
Rename TargetSubtargetInfo::enablePostMachineScheduler() to enablePostRAScheduler()
r213101 changed the behaviour of this method to not only affect the PostMachineScheduler scheduler but also the PostRAScheduler scheduler, renaming should make this fact clear. Also document that the preferred way is to specify this in the scheduling model instead of overriding this method. Differential Revision: http://reviews.llvm.org/D10427 llvm-svn: 239659
Diffstat (limited to 'llvm/lib/CodeGen/PostRASchedulerList.cpp')
-rw-r--r--llvm/lib/CodeGen/PostRASchedulerList.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/PostRASchedulerList.cpp b/llvm/lib/CodeGen/PostRASchedulerList.cpp
index 55f08e496de..6f76116da1e 100644
--- a/llvm/lib/CodeGen/PostRASchedulerList.cpp
+++ b/llvm/lib/CodeGen/PostRASchedulerList.cpp
@@ -257,7 +257,7 @@ bool PostRAScheduler::enablePostRAScheduler(
TargetSubtargetInfo::RegClassVector &CriticalPathRCs) const {
Mode = ST.getAntiDepBreakMode();
ST.getCriticalPathRCs(CriticalPathRCs);
- return ST.enablePostMachineScheduler() &&
+ return ST.enablePostRAScheduler() &&
OptLevel >= ST.getOptLevelToEnablePostRAScheduler();
}
OpenPOWER on IntegriCloud