From d1e2aaef4fbfd6595f5048ae5dd266738c13e295 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Tue, 5 Aug 2003 15:51:05 +0000 Subject: If we're debugging the SimplifyCFG pass, we _REALLY_ don't want to use it for narrowing, no matter what. llvm-svn: 7596 --- llvm/tools/bugpoint/ExtractFunction.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'llvm/tools/bugpoint/ExtractFunction.cpp') diff --git a/llvm/tools/bugpoint/ExtractFunction.cpp b/llvm/tools/bugpoint/ExtractFunction.cpp index 525c7467f16..9cb922a55d4 100644 --- a/llvm/tools/bugpoint/ExtractFunction.cpp +++ b/llvm/tools/bugpoint/ExtractFunction.cpp @@ -16,6 +16,8 @@ #include "llvm/Constant.h" #include "Support/CommandLine.h" +bool DisableSimplifyCFG = false; + namespace { cl::opt NoADCE("disable-adce", @@ -23,8 +25,8 @@ namespace { cl::opt NoDCE ("disable-dce", cl::desc("Do not use the -dce pass to reduce testcases")); - cl::opt - NoSCFG("disable-simplifycfg", + cl::opt + NoSCFG("disable-simplifycfg", cl::location(DisableSimplifyCFG), cl::desc("Do not use the -simplifycfg pass to reduce testcases")); cl::opt NoFinalCleanup("disable-final-cleanup", @@ -67,7 +69,7 @@ Module *BugDriver::deleteInstructionFromProgram(Instruction *I, //Passes.add(createInstructionCombiningPass()); if (Simplification > 1 && !NoDCE) Passes.add(createDeadCodeEliminationPass()); - if (Simplification && !NoSCFG) + if (Simplification && !DisableSimplifyCFG) Passes.add(createCFGSimplificationPass()); // Delete dead control flow Passes.add(createVerifierPass()); -- cgit v1.2.3