aboutsummaryrefslogtreecommitdiff
path: root/tools/bugpoint/ExtractFunction.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-11-18 19:40:13 +0000
committerChris Lattner <sabre@nondot.org>2004-11-18 19:40:13 +0000
commita269ec7b0a83d3b20730fd2d9f7c3ed5a552da90 (patch)
tree567e1c24524393c8569644d1d17a23a81f890e1f /tools/bugpoint/ExtractFunction.cpp
parenta9aa80993514d4146f4730722bda8466b2b9e6f8 (diff)
remove debugging code
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17962 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/bugpoint/ExtractFunction.cpp')
-rw-r--r--tools/bugpoint/ExtractFunction.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/tools/bugpoint/ExtractFunction.cpp b/tools/bugpoint/ExtractFunction.cpp
index bc38751048..078c7baf4e 100644
--- a/tools/bugpoint/ExtractFunction.cpp
+++ b/tools/bugpoint/ExtractFunction.cpp
@@ -142,9 +142,9 @@ Module *BugDriver::ExtractLoop(Module *M) {
}
// 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 *BugDriver::ExtractLoop(Module *M) {
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;