aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2012-02-16 17:29:50 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2012-02-16 17:29:50 +0000
commit1a7ea9dd0431287a7346cd107680deb444d39f51 (patch)
tree18ca11c286bb8be08e996af18ac74941df47afaa
parentea79b8e03ca7c7be72832c11e9d4d78f11b728b3 (diff)
downloadexternal_llvm-1a7ea9dd0431287a7346cd107680deb444d39f51.zip
external_llvm-1a7ea9dd0431287a7346cd107680deb444d39f51.tar.gz
external_llvm-1a7ea9dd0431287a7346cd107680deb444d39f51.tar.bz2
Disable machine copy propagation for now. It's known to be buggy (PR11940) and introduces subtle miscompiles in many places.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@150703 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/CodeGen/Passes.cpp2
-rw-r--r--test/CodeGen/X86/machine-cp.ll2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/CodeGen/Passes.cpp b/lib/CodeGen/Passes.cpp
index ec1f2b4..401ca65 100644
--- a/lib/CodeGen/Passes.cpp
+++ b/lib/CodeGen/Passes.cpp
@@ -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,
diff --git a/test/CodeGen/X86/machine-cp.ll b/test/CodeGen/X86/machine-cp.ll
index 54fa01c..772d2d0 100644
--- a/test/CodeGen/X86/machine-cp.ll
+++ b/test/CodeGen/X86/machine-cp.ll
@@ -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