mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-21 03:29:40 +00:00
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
This commit is contained in:
parent
9eb7e0aa57
commit
265d82e4c6
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user