From: Dan Gohman Date: Tue, 16 Dec 2008 06:21:45 +0000 (+0000) Subject: Enable anti-dependence breaking by default when post-RA scheduling is enabled. X-Git-Tag: android-x86-6.0-r1~1047^2~16826 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=5d36e5a5fe59c26f71132b31cf34c3a314f07528;p=android-x86%2Fexternal-llvm.git Enable anti-dependence breaking by default when post-RA scheduling is enabled. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@61078 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/PostRASchedulerList.cpp b/lib/CodeGen/PostRASchedulerList.cpp index 865479d3006..b5d789c38e4 100644 --- a/lib/CodeGen/PostRASchedulerList.cpp +++ b/lib/CodeGen/PostRASchedulerList.cpp @@ -43,7 +43,7 @@ STATISTIC(NumStalls, "Number of pipeline stalls"); static cl::opt EnableAntiDepBreaking("break-anti-dependencies", cl::desc("Break scheduling anti-dependencies"), - cl::init(false)); + cl::init(true)); namespace { class VISIBILITY_HIDDEN PostRAScheduler : public MachineFunctionPass { diff --git a/test/CodeGen/X86/break-anti-dependencies.ll b/test/CodeGen/X86/break-anti-dependencies.ll index 8646e3ebe86..b432c39c011 100644 --- a/test/CodeGen/X86/break-anti-dependencies.ll +++ b/test/CodeGen/X86/break-anti-dependencies.ll @@ -1,4 +1,4 @@ -; RUN: llvm-as < %s | llc -march=x86-64 -disable-post-RA-scheduler=false > %t +; RUN: llvm-as < %s | llc -march=x86-64 -disable-post-RA-scheduler=false -break-anti-dependencies=false > %t ; RUN: grep {%xmm0} %t | count 14 ; RUN: not grep {%xmm1} %t ; RUN: llvm-as < %s | llc -march=x86-64 -disable-post-RA-scheduler=false -break-anti-dependencies > %t