[llvm-commits] CVS: llvm/tools/bugpoint/CrashDebugger.cpp ExtractFunction.cpp
Chris Lattner
lattner at cs.uiuc.edu
Sat Mar 13 13:37:01 PST 2004
Changes in directory llvm/tools/bugpoint:
CrashDebugger.cpp updated: 1.32 -> 1.33
ExtractFunction.cpp updated: 1.23 -> 1.24
---
Log message:
Fix the "infinite looping unless you disable adce" bug
Also remove an option to disable adce :)
---
Diffs of the changes: (+1 -7)
Index: llvm/tools/bugpoint/CrashDebugger.cpp
diff -u llvm/tools/bugpoint/CrashDebugger.cpp:1.32 llvm/tools/bugpoint/CrashDebugger.cpp:1.33
--- llvm/tools/bugpoint/CrashDebugger.cpp:1.32 Wed Feb 18 17:59:11 2004
+++ llvm/tools/bugpoint/CrashDebugger.cpp Sat Mar 13 13:35:54 2004
@@ -330,7 +330,7 @@
// 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"
Index: llvm/tools/bugpoint/ExtractFunction.cpp
diff -u llvm/tools/bugpoint/ExtractFunction.cpp:1.23 llvm/tools/bugpoint/ExtractFunction.cpp:1.24
--- llvm/tools/bugpoint/ExtractFunction.cpp:1.23 Wed Feb 18 15:50:26 2004
+++ llvm/tools/bugpoint/ExtractFunction.cpp Sat Mar 13 13:35:54 2004
@@ -33,9 +33,6 @@
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 @@
// 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)
More information about the llvm-commits
mailing list