diff options
author | Hal Finkel <hfinkel@anl.gov> | 2012-04-01 19:22:57 +0000 |
---|---|---|
committer | Hal Finkel <hfinkel@anl.gov> | 2012-04-01 19:22:57 +0000 |
commit | 97c9d4c64c870c1eceb1d6264f2457273e6e0738 (patch) | |
tree | 11edff2f5bbdf67064e5ac5bc0fc5a26140f364c /lib/Target/PowerPC/PPCSubtarget.cpp | |
parent | 4d989ac93ce608057fb6b13a4068264ab037ecd5 (diff) |
Use full anti-dep. breaking with post-ra sched. on the embedded ppc cores.
Post-RA scheduling gives a significant performance improvement on
the embedded cores, so turn it on. Using full anti-dep. breaking is
important for FP-intensive blocks, so turn it on (just on the
embedded cores for now; this should also be good on the 970s because
post-ra scheduling is all that we have for now, but that should have
more testing first).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@153843 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/PowerPC/PPCSubtarget.cpp')
-rw-r--r-- | lib/Target/PowerPC/PPCSubtarget.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/Target/PowerPC/PPCSubtarget.cpp b/lib/Target/PowerPC/PPCSubtarget.cpp index fa54a44029..f405b4711a 100644 --- a/lib/Target/PowerPC/PPCSubtarget.cpp +++ b/lib/Target/PowerPC/PPCSubtarget.cpp @@ -147,9 +147,10 @@ bool PPCSubtarget::enablePostRAScheduler( TargetSubtargetInfo::AntiDepBreakMode& Mode, RegClassVector& CriticalPathRCs) const { if (DarwinDirective == PPC::DIR_440 || DarwinDirective == PPC::DIR_A2) - return false; + Mode = TargetSubtargetInfo::ANTIDEP_ALL; + else + Mode = TargetSubtargetInfo::ANTIDEP_CRITICAL; - Mode = TargetSubtargetInfo::ANTIDEP_CRITICAL; CriticalPathRCs.clear(); if (isPPC64()) |