[llvm-commits] CVS: llvm/tools/bugpoint/ExtractFunction.cpp
Chris Lattner
lattner at cs.uiuc.edu
Thu Nov 18 11:40:31 PST 2004
Changes in directory llvm/tools/bugpoint:
ExtractFunction.cpp updated: 1.40 -> 1.41
---
Log message:
remove debugging code
---
Diffs of the changes: (+3 -5)
Index: llvm/tools/bugpoint/ExtractFunction.cpp
diff -u llvm/tools/bugpoint/ExtractFunction.cpp:1.40 llvm/tools/bugpoint/ExtractFunction.cpp:1.41
--- llvm/tools/bugpoint/ExtractFunction.cpp:1.40 Tue Nov 16 00:31:37 2004
+++ llvm/tools/bugpoint/ExtractFunction.cpp Thu Nov 18 13:40:13 2004
@@ -142,9 +142,9 @@
}
// Check to see if we created any new functions. If not, no loops were
- // extracted and we should return null.
- static unsigned NumExtracted = 15;
-
+ // extracted and we should return null. Limit the number of loops we extract
+ // to avoid taking forever.
+ static unsigned NumExtracted = 32;
if (M->size() == NewM->size() || --NumExtracted == 0) {
delete NewM;
return 0;
@@ -153,8 +153,6 @@
Module::iterator MI = NewM->begin();
for (unsigned i = 0, e = M->size(); i != e; ++i)
++MI;
- for (; MI != NewM->end(); ++MI)
- std::cerr << "NEW FUNCTION: " << *MI;
}
return NewM;
More information about the llvm-commits
mailing list