summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/PostRASchedulerList.cpp
diff options
context:
space:
mode:
authorEric Christopher <echristo@gmail.com>2015-01-27 07:31:29 +0000
committerEric Christopher <echristo@gmail.com>2015-01-27 07:31:29 +0000
commit3d4276f053061933d45140b7bcb727d6b6efc7b4 (patch)
tree6907fc3fb94028b4576c2bd55359de6f6356ba7e /llvm/lib/CodeGen/PostRASchedulerList.cpp
parente38c8d4aa92769e7d6af523310844fa361852d74 (diff)
downloadbcm5719-llvm-3d4276f053061933d45140b7bcb727d6b6efc7b4.tar.gz
bcm5719-llvm-3d4276f053061933d45140b7bcb727d6b6efc7b4.zip
The subtarget is cached on the MachineFunction. Access it directly.
llvm-svn: 227173
Diffstat (limited to 'llvm/lib/CodeGen/PostRASchedulerList.cpp')
-rw-r--r--llvm/lib/CodeGen/PostRASchedulerList.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/PostRASchedulerList.cpp b/llvm/lib/CodeGen/PostRASchedulerList.cpp
index 89e1d113ff7..ad59fc9a407 100644
--- a/llvm/lib/CodeGen/PostRASchedulerList.cpp
+++ b/llvm/lib/CodeGen/PostRASchedulerList.cpp
@@ -282,9 +282,7 @@ bool PostRAScheduler::runOnMachineFunction(MachineFunction &Fn) {
} else {
// Check that post-RA scheduling is enabled for this target.
// This may upgrade the AntiDepMode.
- const TargetSubtargetInfo &ST =
- Fn.getTarget().getSubtarget<TargetSubtargetInfo>();
- if (!enablePostRAScheduler(ST, PassConfig->getOptLevel(),
+ if (!enablePostRAScheduler(Fn.getSubtarget(), PassConfig->getOptLevel(),
AntiDepMode, CriticalPathRCs))
return false;
}
OpenPOWER on IntegriCloud