diff options
author | Chris Lattner <sabre@nondot.org> | 2004-03-13 19:35:54 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2004-03-13 19:35:54 +0000 |
commit | 0ee372cfe337d05e16b830221bfa142cd78b2a03 (patch) | |
tree | 167224e6fc3e76492226f186dab41507ffb7cf55 | |
parent | 652eb53dad8c3a4594c935d39aac7acda05698e6 (diff) | |
download | bcm5719-llvm-0ee372cfe337d05e16b830221bfa142cd78b2a03.tar.gz bcm5719-llvm-0ee372cfe337d05e16b830221bfa142cd78b2a03.zip |
Fix the "infinite looping unless you disable adce" bug
Also remove an option to disable adce :)
llvm-svn: 12359
-rw-r--r-- | llvm/tools/bugpoint/CrashDebugger.cpp | 2 | ||||
-rw-r--r-- | llvm/tools/bugpoint/ExtractFunction.cpp | 6 |
2 files changed, 1 insertions, 7 deletions
diff --git a/llvm/tools/bugpoint/CrashDebugger.cpp b/llvm/tools/bugpoint/CrashDebugger.cpp index a0b695cc21f..04f494a0b62 100644 --- a/llvm/tools/bugpoint/CrashDebugger.cpp +++ b/llvm/tools/bugpoint/CrashDebugger.cpp @@ -330,7 +330,7 @@ static bool DebugACrash(BugDriver &BD, bool (*TestFn)(BugDriver &, Module *)) { // FIXME: This should use the list reducer to converge faster by deleting // larger chunks of instructions at a time! - unsigned Simplification = 4; + unsigned Simplification = 2; do { --Simplification; std::cout << "\n*** Attempting to reduce testcase by deleting instruc" diff --git a/llvm/tools/bugpoint/ExtractFunction.cpp b/llvm/tools/bugpoint/ExtractFunction.cpp index 9841c44c0f2..b9298d3db35 100644 --- a/llvm/tools/bugpoint/ExtractFunction.cpp +++ b/llvm/tools/bugpoint/ExtractFunction.cpp @@ -33,9 +33,6 @@ namespace llvm { namespace { cl::opt<bool> - NoADCE("disable-adce", - cl::desc("Do not use the -adce pass to reduce testcases")); - cl::opt<bool> NoDCE ("disable-dce", cl::desc("Do not use the -dce pass to reduce testcases")); cl::opt<bool, true> @@ -78,9 +75,6 @@ Module *BugDriver::deleteInstructionFromProgram(const Instruction *I, // Make sure that the appropriate target data is always used... Passes.add(new TargetData("bugpoint", Result)); - if (Simplification > 2 && !NoADCE) - Passes.add(createAggressiveDCEPass()); // Remove dead code... - //Passes.add(createInstructionCombiningPass()); if (Simplification > 1 && !NoDCE) Passes.add(createDeadCodeEliminationPass()); if (Simplification && !DisableSimplifyCFG) |