From 1a7ea9dd0431287a7346cd107680deb444d39f51 Mon Sep 17 00:00:00 2001 From: Benjamin Kramer Date: Thu, 16 Feb 2012 17:29:50 +0000 Subject: [PATCH] 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 --- lib/CodeGen/Passes.cpp | 2 +- test/CodeGen/X86/machine-cp.ll | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/CodeGen/Passes.cpp b/lib/CodeGen/Passes.cpp index ec1f2b4c3b2..401ca657c40 100644 --- a/lib/CodeGen/Passes.cpp +++ b/lib/CodeGen/Passes.cpp @@ -69,7 +69,7 @@ static cl::opt DisableLSR("disable-lsr", cl::Hidden, static cl::opt DisableCGP("disable-cgp", cl::Hidden, cl::desc("Disable Codegen Prepare")); static cl::opt DisableCopyProp("disable-copyprop", cl::Hidden, - cl::desc("Disable Copy Propagation pass")); + cl::desc("Disable Copy Propagation pass"), cl::init(true)); // PR11940 static cl::opt PrintLSR("print-lsr-output", cl::Hidden, cl::desc("Print LLVM IR produced by the loop-reduce pass")); static cl::opt PrintISelInput("print-isel-input", cl::Hidden, diff --git a/test/CodeGen/X86/machine-cp.ll b/test/CodeGen/X86/machine-cp.ll index 54fa01c38fd..772d2d080b6 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