summaryrefslogtreecommitdiff
path: root/tools/bugpoint/CrashDebugger.cpp
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
commit2c235010312f72622acd4b7bb70f87cf31a982f6 (patch)
treef096f347b54e62d33ca6eb807d3545e3255867cf /tools/bugpoint/CrashDebugger.cpp
parent23d471f62eed3518fe7737dbccee52faec4ffe75 (diff)
downloadllvm-2c235010312f72622acd4b7bb70f87cf31a982f6.tar.gz
llvm-2c235010312f72622acd4b7bb70f87cf31a982f6.tar.bz2
llvm-2c235010312f72622acd4b7bb70f87cf31a982f6.tar.xz
Make bugpoint emit a bugpoint-reduced-blocks.bc, because bugpoint itself
can crash during instruction simplification (for example if it creates a broken module). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@72362 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/bugpoint/CrashDebugger.cpp')
-rw-r--r--tools/bugpoint/CrashDebugger.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/bugpoint/CrashDebugger.cpp b/tools/bugpoint/CrashDebugger.cpp
index 2e43f88c71..f46fed7860 100644
--- a/tools/bugpoint/CrashDebugger.cpp
+++ b/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