Use full anti-dep. breaking with post-ra sched. on the embedded ppc cores.
authorHal Finkel <hfinkel@anl.gov>
Sun, 1 Apr 2012 19:22:57 +0000 (19:22 +0000)
committerHal Finkel <hfinkel@anl.gov>
Sun, 1 Apr 2012 19:22:57 +0000 (19:22 +0000)
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

lib/Target/PowerPC/PPCSubtarget.cpp

index fa54a440294da8bfe53356e2bb0b81606025c1e2..f405b4711a52f24e6df12b55d4c7f245a0564057 100644 (file)
@@ -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())