[llvm-commits] [llvm] r72362 - /llvm/trunk/tools/bugpoint/CrashDebugger.cpp
Torok Edwin
edwintorok at gmail.com
Sun May 24 02:40:57 PDT 2009
Author: edwin
Date: Sun May 24 04:40:47 2009
New Revision: 72362
URL: http://llvm.org/viewvc/llvm-project?rev=72362&view=rev
Log:
Make bugpoint emit a bugpoint-reduced-blocks.bc, because bugpoint itself
can crash during instruction simplification (for example if it creates a
broken module).
Modified:
llvm/trunk/tools/bugpoint/CrashDebugger.cpp
Modified: llvm/trunk/tools/bugpoint/CrashDebugger.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/bugpoint/CrashDebugger.cpp?rev=72362&r1=72361&r2=72362&view=diff
==============================================================================
--- llvm/trunk/tools/bugpoint/CrashDebugger.cpp (original)
+++ llvm/trunk/tools/bugpoint/CrashDebugger.cpp Sun May 24 04:40:47 2009
@@ -426,7 +426,10 @@
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
More information about the llvm-commits
mailing list