If we're debugging the SimplifyCFG pass, we _REALLY_ don't want to use it for

narrowing, no matter what.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7596 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner
2003-08-05 15:51:05 +00:00
parent 7a012299ce
commit 47ae4a1cee
3 changed files with 14 additions and 8 deletions

View File

@ -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());