summaryrefslogtreecommitdiffstats
path: root/llvm/tools/bugpoint/ExtractFunction.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-08-05 15:51:05 +0000
committerChris Lattner <sabre@nondot.org>2003-08-05 15:51:05 +0000
commitd1e2aaef4fbfd6595f5048ae5dd266738c13e295 (patch)
treed3f6d62f0bb575b55c64c8ed95233c589443debd /llvm/tools/bugpoint/ExtractFunction.cpp
parent463d6a5e7c680448157bca1ccc2db77f751f5047 (diff)
downloadbcm5719-llvm-d1e2aaef4fbfd6595f5048ae5dd266738c13e295.tar.gz
bcm5719-llvm-d1e2aaef4fbfd6595f5048ae5dd266738c13e295.zip
If we're debugging the SimplifyCFG pass, we _REALLY_ don't want to use it for
narrowing, no matter what. llvm-svn: 7596
Diffstat (limited to 'llvm/tools/bugpoint/ExtractFunction.cpp')
-rw-r--r--llvm/tools/bugpoint/ExtractFunction.cpp8
1 files changed, 5 insertions, 3 deletions
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<bool>
NoADCE("disable-adce",
@@ -23,8 +25,8 @@ namespace {
cl::opt<bool>
NoDCE ("disable-dce",
cl::desc("Do not use the -dce pass to reduce testcases"));
- cl::opt<bool>
- NoSCFG("disable-simplifycfg",
+ cl::opt<bool, true>
+ NoSCFG("disable-simplifycfg", cl::location(DisableSimplifyCFG),
cl::desc("Do not use the -simplifycfg pass to reduce testcases"));
cl::opt<bool>
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());
OpenPOWER on IntegriCloud