diff options
| author | Torok Edwin <edwintorok@gmail.com> | 2009-05-24 09:40:47 +0000 |
|---|---|---|
| committer | Torok Edwin <edwintorok@gmail.com> | 2009-05-24 09:40:47 +0000 |
| commit | 6ee6f73973b7b228b49b4c373f3489373f89d030 (patch) | |
| tree | a2c65b14346ca6ca950981d2b90f7dc6bf6c2bf0 | |
| parent | 5bd3f7b4a24a22fdfbb03ffd3469c6c5ca601df2 (diff) | |
| download | bcm5719-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
| -rw-r--r-- | llvm/tools/bugpoint/CrashDebugger.cpp | 3 |
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 |

