[llvm-commits] [llvm] r148662 - /llvm/trunk/lib/CodeGen/LLVMTargetMachine.cpp

Anton Korobeynikov asl at math.spbu.ru
Sun Jan 22 06:08:34 PST 2012


Author: asl
Date: Sun Jan 22 08:08:34 2012
New Revision: 148662

URL: http://llvm.org/viewvc/llvm-project?rev=148662&view=rev
Log:
Add an option to disable buggy copy propagation pass

Modified:
    llvm/trunk/lib/CodeGen/LLVMTargetMachine.cpp

Modified: llvm/trunk/lib/CodeGen/LLVMTargetMachine.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/LLVMTargetMachine.cpp?rev=148662&r1=148661&r2=148662&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/LLVMTargetMachine.cpp (original)
+++ llvm/trunk/lib/CodeGen/LLVMTargetMachine.cpp Sun Jan 22 08:08:34 2012
@@ -72,6 +72,8 @@
     cl::desc("Disable Loop Strength Reduction Pass"));
 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"));
 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,
@@ -463,7 +465,7 @@
   }
 
   // Copy propagation.
-  if (getOptLevel() != CodeGenOpt::None) {
+  if (getOptLevel() != CodeGenOpt::None && !DisableCopyProp) {
     PM.add(createMachineCopyPropagationPass());
     printNoVerify(PM, "After copy propagation pass");
   }





More information about the llvm-commits mailing list