1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-01-31 20:51:52 +01:00

remove debugging code

llvm-svn: 17962
This commit is contained in:
Chris Lattner 2004-11-18 19:40:13 +00:00
parent bd01287efd
commit 2d13429bbb

View File

@ -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;