aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorDavid Goodwin <david_goodwin@apple.com>2009-07-28 23:08:36 +0000
committerDavid Goodwin <david_goodwin@apple.com>2009-07-28 23:08:36 +0000
commit265d82e4c68fa30b7ff1cb650456249f7068bdd6 (patch)
treee30d9c691f411c2d3c54bfec28233ffa58fa7055 /tools
parent9eb7e0aa57c189c0b81a291079f7934a039e9f73 (diff)
downloadexternal_llvm-265d82e4c68fa30b7ff1cb650456249f7068bdd6.zip
external_llvm-265d82e4c68fa30b7ff1cb650456249f7068bdd6.tar.gz
external_llvm-265d82e4c68fa30b7ff1cb650456249f7068bdd6.tar.bz2
Add a bugpoint flag to disable block extraction.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77389 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools')
-rw-r--r--tools/bugpoint/Miscompilation.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/tools/bugpoint/Miscompilation.cpp b/tools/bugpoint/Miscompilation.cpp
index 7c7d5a3..310e2ac 100644
--- a/tools/bugpoint/Miscompilation.cpp
+++ b/tools/bugpoint/Miscompilation.cpp
@@ -37,6 +37,10 @@ namespace {
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 @@ DebugAMiscompilation(BugDriver &BD,
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.