diff options
| author | David Goodwin <david_goodwin@apple.com> | 2009-11-13 19:52:48 +0000 |
|---|---|---|
| committer | David Goodwin <david_goodwin@apple.com> | 2009-11-13 19:52:48 +0000 |
| commit | b9fe5d5d02e7ada8fdf4fa924f687e3d4c9f051b (patch) | |
| tree | 9d81424b6a5f617e8b56fe3889133ea517e37e10 /llvm/lib/CodeGen/PostRASchedulerList.cpp | |
| parent | e56213fc1e6d8d4da466f76689d51db6bf84bed3 (diff) | |
| download | bcm5719-llvm-b9fe5d5d02e7ada8fdf4fa924f687e3d4c9f051b.tar.gz bcm5719-llvm-b9fe5d5d02e7ada8fdf4fa924f687e3d4c9f051b.zip | |
Allow target to specify regclass for which antideps will only be broken along the critical path.
llvm-svn: 88682
Diffstat (limited to 'llvm/lib/CodeGen/PostRASchedulerList.cpp')
| -rw-r--r-- | llvm/lib/CodeGen/PostRASchedulerList.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/PostRASchedulerList.cpp b/llvm/lib/CodeGen/PostRASchedulerList.cpp index a29f349b0b5..5f1f1f3580c 100644 --- a/llvm/lib/CodeGen/PostRASchedulerList.cpp +++ b/llvm/lib/CodeGen/PostRASchedulerList.cpp @@ -216,14 +216,14 @@ bool PostRAScheduler::runOnMachineFunction(MachineFunction &Fn) { // Check for explicit enable/disable of post-ra scheduling. TargetSubtarget::AntiDepBreakMode AntiDepMode = TargetSubtarget::ANTIDEP_NONE; - SmallVector<TargetRegisterClass*, 4> ExcludedRCs; + SmallVector<TargetRegisterClass*, 4> CriticalPathRCs; if (EnablePostRAScheduler.getPosition() > 0) { if (!EnablePostRAScheduler) return false; } else { // Check that post-RA scheduling is enabled for this target. const TargetSubtarget &ST = Fn.getTarget().getSubtarget<TargetSubtarget>(); - if (!ST.enablePostRAScheduler(OptLevel, AntiDepMode, ExcludedRCs)) + if (!ST.enablePostRAScheduler(OptLevel, AntiDepMode, CriticalPathRCs)) return false; } @@ -244,7 +244,7 @@ bool PostRAScheduler::runOnMachineFunction(MachineFunction &Fn) { (ScheduleHazardRecognizer *)new SimpleHazardRecognizer(); AntiDepBreaker *ADB = ((AntiDepMode == TargetSubtarget::ANTIDEP_ALL) ? - (AntiDepBreaker *)new AggressiveAntiDepBreaker(Fn, ExcludedRCs) : + (AntiDepBreaker *)new AggressiveAntiDepBreaker(Fn, CriticalPathRCs) : ((AntiDepMode == TargetSubtarget::ANTIDEP_CRITICAL) ? (AntiDepBreaker *)new CriticalAntiDepBreaker(Fn) : NULL)); |

