From ec5a1e36699bba290b2ab45c937897ca282c7c69 Mon Sep 17 00:00:00 2001 From: Hal Finkel Date: Sun, 1 Apr 2012 19:22:57 +0000 Subject: [PATCH] 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). llvm-svn: 153843 --- llvm/lib/Target/PowerPC/PPCSubtarget.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/llvm/lib/Target/PowerPC/PPCSubtarget.cpp b/llvm/lib/Target/PowerPC/PPCSubtarget.cpp index fa54a440294d..f405b4711a52 100644 --- a/llvm/lib/Target/PowerPC/PPCSubtarget.cpp +++ b/llvm/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())