llvm.org GIT mirror llvm / 4a309f3
Add an option to disable buggy copy propagation pass git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@148662 91177308-0d34-0410-b5e6-96231b3b80d8 Anton Korobeynikov 8 years ago
1 changed file(s) with 3 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
7171 cl::desc("Disable Loop Strength Reduction Pass"));
7272 static cl::opt DisableCGP("disable-cgp", cl::Hidden,
7373 cl::desc("Disable Codegen Prepare"));
74 static cl::opt DisableCopyProp("disable-copyprop", cl::Hidden,
75 cl::desc("Disable Copy Propagation pass"));
7476 static cl::opt PrintLSR("print-lsr-output", cl::Hidden,
7577 cl::desc("Print LLVM IR produced by the loop-reduce pass"));
7678 static cl::opt PrintISelInput("print-isel-input", cl::Hidden,
462464 }
463465
464466 // Copy propagation.
465 if (getOptLevel() != CodeGenOpt::None) {
467 if (getOptLevel() != CodeGenOpt::None && !DisableCopyProp) {
466468 PM.add(createMachineCopyPropagationPass());
467469 printNoVerify(PM, "After copy propagation pass");
468470 }