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 | b2c180f04e4f71a29c8c4a2478179cb1ddd5d859 (patch) | |
tree | 6884496d3eefd5b0a1253f9b899d5d71df2bb06c /tools | |
parent | cc7c4acffa9fb14eb8ba08f70ba83a6331fcf58b (diff) | |
download | external_llvm-b2c180f04e4f71a29c8c4a2478179cb1ddd5d859.zip external_llvm-b2c180f04e4f71a29c8c4a2478179cb1ddd5d859.tar.gz external_llvm-b2c180f04e4f71a29c8c4a2478179cb1ddd5d859.tar.bz2 |
Fix the "infinite looping unless you disable adce" bug
Also remove an option to disable adce :)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12359 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools')
-rw-r--r-- | tools/bugpoint/CrashDebugger.cpp | 2 | ||||
-rw-r--r-- | tools/bugpoint/ExtractFunction.cpp | 6 |
2 files changed, 1 insertions, 7 deletions
diff --git a/tools/bugpoint/CrashDebugger.cpp b/tools/bugpoint/CrashDebugger.cpp index a0b695c..04f494a 100644 --- a/tools/bugpoint/CrashDebugger.cpp +++ b/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/tools/bugpoint/ExtractFunction.cpp b/tools/bugpoint/ExtractFunction.cpp index 9841c44..b9298d3 100644 --- a/tools/bugpoint/ExtractFunction.cpp +++ b/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) |