mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 11:13:28 +01:00
Make bugpoint emit a bugpoint-reduced-blocks.bc, because bugpoint itself
can crash during instruction simplification (for example if it creates a broken module). llvm-svn: 72362
This commit is contained in:
parent
65289dbda1
commit
c492a2c1bc
@ -426,7 +426,10 @@ static bool DebugACrash(BugDriver &BD, bool (*TestFn)(BugDriver &, Module *)) {
|
|||||||
E = BD.getProgram()->end(); I != E; ++I)
|
E = BD.getProgram()->end(); I != E; ++I)
|
||||||
for (Function::const_iterator FI = I->begin(), E = I->end(); FI !=E; ++FI)
|
for (Function::const_iterator FI = I->begin(), E = I->end(); FI !=E; ++FI)
|
||||||
Blocks.push_back(FI);
|
Blocks.push_back(FI);
|
||||||
|
unsigned OldSize = Blocks.size();
|
||||||
ReduceCrashingBlocks(BD, TestFn).reduceList(Blocks);
|
ReduceCrashingBlocks(BD, TestFn).reduceList(Blocks);
|
||||||
|
if (Blocks.size() < OldSize)
|
||||||
|
BD.EmitProgressBitcode("reduced-blocks");
|
||||||
}
|
}
|
||||||
|
|
||||||
// FIXME: This should use the list reducer to converge faster by deleting
|
// FIXME: This should use the list reducer to converge faster by deleting
|
||||||
|
Loading…
Reference in New Issue
Block a user