From 2c04ff640284d89572efed23dbefe234629c3844 Mon Sep 17 00:00:00 2001 From: David Goodwin Date: Tue, 28 Jul 2009 23:08:36 +0000 Subject: [PATCH] Add a bugpoint flag to disable block extraction. llvm-svn: 77389 --- llvm/tools/bugpoint/Miscompilation.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/llvm/tools/bugpoint/Miscompilation.cpp b/llvm/tools/bugpoint/Miscompilation.cpp index 7c7d5a3..310e2ac 100644 --- a/llvm/tools/bugpoint/Miscompilation.cpp +++ b/llvm/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 + DisableBlockExtraction("disable-block-extraction", + cl::desc("Don't extract blocks when searching for miscompilations"), + cl::init(false)); class ReduceMiscompilingPasses : public ListReducer { 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. -- 2.7.4