summaryrefslogtreecommitdiffstats
path: root/llvm/tools/bugpoint
diff options
context:
space:
mode:
authorTorok Edwin <edwintorok@gmail.com>2009-05-24 09:40:47 +0000
committerTorok Edwin <edwintorok@gmail.com>2009-05-24 09:40:47 +0000
commit6ee6f73973b7b228b49b4c373f3489373f89d030 (patch)
treea2c65b14346ca6ca950981d2b90f7dc6bf6c2bf0 /llvm/tools/bugpoint
parent5bd3f7b4a24a22fdfbb03ffd3469c6c5ca601df2 (diff)
downloadbcm5719-llvm-6ee6f73973b7b228b49b4c373f3489373f89d030.tar.gz
bcm5719-llvm-6ee6f73973b7b228b49b4c373f3489373f89d030.zip
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
Diffstat (limited to 'llvm/tools/bugpoint')
-rw-r--r--llvm/tools/bugpoint/CrashDebugger.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/tools/bugpoint/CrashDebugger.cpp b/llvm/tools/bugpoint/CrashDebugger.cpp
index 2e43f88c711..f46fed78608 100644
--- a/llvm/tools/bugpoint/CrashDebugger.cpp
+++ b/llvm/tools/bugpoint/CrashDebugger.cpp
@@ -426,7 +426,10 @@ static bool DebugACrash(BugDriver &BD, bool (*TestFn)(BugDriver &, Module *)) {
E = BD.getProgram()->end(); I != E; ++I)
for (Function::const_iterator FI = I->begin(), E = I->end(); FI !=E; ++FI)
Blocks.push_back(FI);
+ unsigned OldSize = Blocks.size();
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
OpenPOWER on IntegriCloud