diff options
author | Chris Lattner <sabre@nondot.org> | 2004-11-18 19:40:13 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2004-11-18 19:40:13 +0000 |
commit | 8cb483b3355ae422ea6823f27fbc929a8db5132e (patch) | |
tree | 446f2748e96c08e861bd26d7d739a4dc31bd111a /llvm/tools/bugpoint/ExtractFunction.cpp | |
parent | cb0da4f1b763338775977198dba93d884c3c69c9 (diff) | |
download | bcm5719-llvm-8cb483b3355ae422ea6823f27fbc929a8db5132e.tar.gz bcm5719-llvm-8cb483b3355ae422ea6823f27fbc929a8db5132e.zip |
remove debugging code
llvm-svn: 17962
Diffstat (limited to 'llvm/tools/bugpoint/ExtractFunction.cpp')
-rw-r--r-- | llvm/tools/bugpoint/ExtractFunction.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/llvm/tools/bugpoint/ExtractFunction.cpp b/llvm/tools/bugpoint/ExtractFunction.cpp index bc38751048a..078c7baf4e9 100644 --- a/llvm/tools/bugpoint/ExtractFunction.cpp +++ b/llvm/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; |