[llvm-commits] [llvm] r153843 - /llvm/trunk/lib/Target/PowerPC/PPCSubtarget.cpp

Hal Finkel hfinkel at anl.gov
Sun Apr 1 12:22:57 PDT 2012


Author: hfinkel
Date: Sun Apr  1 14:22:57 2012
New Revision: 153843

URL: http://llvm.org/viewvc/llvm-project?rev=153843&view=rev
Log:
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).

Modified:
    llvm/trunk/lib/Target/PowerPC/PPCSubtarget.cpp

Modified: llvm/trunk/lib/Target/PowerPC/PPCSubtarget.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/PowerPC/PPCSubtarget.cpp?rev=153843&r1=153842&r2=153843&view=diff
==============================================================================
--- llvm/trunk/lib/Target/PowerPC/PPCSubtarget.cpp (original)
+++ llvm/trunk/lib/Target/PowerPC/PPCSubtarget.cpp Sun Apr  1 14:22:57 2012
@@ -147,9 +147,10 @@
            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())





More information about the llvm-commits mailing list