[llvm-commits] [llvm] r77389 - /llvm/trunk/tools/bugpoint/Miscompilation.cpp
David Goodwin
david_goodwin at apple.com
Tue Jul 28 16:08:37 PDT 2009
Author: david_goodwin
Date: Tue Jul 28 18:08:36 2009
New Revision: 77389
URL: http://llvm.org/viewvc/llvm-project?rev=77389&view=rev
Log:
Add a bugpoint flag to disable block extraction.
Modified:
llvm/trunk/tools/bugpoint/Miscompilation.cpp
Modified: llvm/trunk/tools/bugpoint/Miscompilation.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/bugpoint/Miscompilation.cpp?rev=77389&r1=77388&r2=77389&view=diff
==============================================================================
--- llvm/trunk/tools/bugpoint/Miscompilation.cpp (original)
+++ llvm/trunk/tools/bugpoint/Miscompilation.cpp Tue Jul 28 18:08:36 2009
@@ -37,6 +37,10 @@
DisableLoopExtraction("disable-loop-extraction",
cl::desc("Don't extract loops when searching for miscompilations"),
cl::init(false));
+ static llvm::cl::opt<bool>
+ DisableBlockExtraction("disable-block-extraction",
+ cl::desc("Don't extract blocks when searching for miscompilations"),
+ cl::init(false));
class ReduceMiscompilingPasses : public ListReducer<const PassInfo*> {
BugDriver &BD;
@@ -556,7 +560,7 @@
outs() << '\n';
}
- if (!BugpointIsInterrupted &&
+ if (!BugpointIsInterrupted && !DisableBlockExtraction &&
ExtractBlocks(BD, TestFn, MiscompiledFunctions)) {
// Okay, we extracted some blocks and the problem still appears. See if we
// can eliminate some of the created functions from being candidates.
More information about the llvm-commits
mailing list