mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-05 18:28:29 +00:00
remove debugging code
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17962 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
a9aa809935
commit
a269ec7b0a
@ -142,9 +142,9 @@ Module *BugDriver::ExtractLoop(Module *M) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Check to see if we created any new functions. If not, no loops were
|
// Check to see if we created any new functions. If not, no loops were
|
||||||
// extracted and we should return null.
|
// extracted and we should return null. Limit the number of loops we extract
|
||||||
static unsigned NumExtracted = 15;
|
// to avoid taking forever.
|
||||||
|
static unsigned NumExtracted = 32;
|
||||||
if (M->size() == NewM->size() || --NumExtracted == 0) {
|
if (M->size() == NewM->size() || --NumExtracted == 0) {
|
||||||
delete NewM;
|
delete NewM;
|
||||||
return 0;
|
return 0;
|
||||||
@ -153,8 +153,6 @@ Module *BugDriver::ExtractLoop(Module *M) {
|
|||||||
Module::iterator MI = NewM->begin();
|
Module::iterator MI = NewM->begin();
|
||||||
for (unsigned i = 0, e = M->size(); i != e; ++i)
|
for (unsigned i = 0, e = M->size(); i != e; ++i)
|
||||||
++MI;
|
++MI;
|
||||||
for (; MI != NewM->end(); ++MI)
|
|
||||||
std::cerr << "NEW FUNCTION: " << *MI;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return NewM;
|
return NewM;
|
||||||
|
Loading…
Reference in New Issue
Block a user