Disable machine copy propagation for now. It's known to be buggy (PR11940) and introd...
authorBenjamin Kramer <benny.kra@googlemail.com>
Thu, 16 Feb 2012 17:29:50 +0000 (17:29 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Thu, 16 Feb 2012 17:29:50 +0000 (17:29 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@150703 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/Passes.cpp
test/CodeGen/X86/machine-cp.ll

index ec1f2b4c3b23d598ad5554660420c4d9db6d494c..401ca657c40fc8bd83f6be617eaa33f78369f151 100644 (file)
@@ -69,7 +69,7 @@ static cl::opt<bool> DisableLSR("disable-lsr", cl::Hidden,
 static cl::opt<bool> DisableCGP("disable-cgp", cl::Hidden,
     cl::desc("Disable Codegen Prepare"));
 static cl::opt<bool> DisableCopyProp("disable-copyprop", cl::Hidden,
-    cl::desc("Disable Copy Propagation pass"));
+    cl::desc("Disable Copy Propagation pass"), cl::init(true)); // PR11940
 static cl::opt<bool> PrintLSR("print-lsr-output", cl::Hidden,
     cl::desc("Print LLVM IR produced by the loop-reduce pass"));
 static cl::opt<bool> PrintISelInput("print-isel-input", cl::Hidden,
index 54fa01c38fdeb8f401be5687cbabc9c08d699279..772d2d080b6ca4e908dd012acd902ce4b6dd27e5 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llc -mtriple=x86_64-apple-macosx -mcpu=nocona < %s | FileCheck %s
+; RUN: llc -mtriple=x86_64-apple-macosx -mcpu=nocona < %s -disable-copyprop=false | FileCheck %s
 
 ; After tail duplication, two copies in an early exit BB can be cancelled out.
 ; rdar://10640363