mirror of
https://github.com/RPCSX/llvm.git
synced 2025-01-23 12:45:47 +00:00
Add a -disable-loop-extraction option to bugpoint.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31683 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
4952143236
commit
dc31a8a70c
@ -33,6 +33,11 @@ namespace llvm {
|
||||
}
|
||||
|
||||
namespace {
|
||||
static llvm::cl::opt<bool>
|
||||
DisableLoopExtraction("disable-loop-extraction",
|
||||
cl::desc("Don't extract loops when searching for miscompilations"),
|
||||
cl::init(false));
|
||||
|
||||
class ReduceMiscompilingPasses : public ListReducer<const PassInfo*> {
|
||||
BugDriver &BD;
|
||||
public:
|
||||
@ -512,6 +517,8 @@ DebugAMiscompilation(BugDriver &BD,
|
||||
|
||||
// See if we can rip any loops out of the miscompiled functions and still
|
||||
// trigger the problem.
|
||||
|
||||
if (!DisableLoopExtraction)
|
||||
if (!BugpointIsInterrupted &&
|
||||
ExtractLoops(BD, TestFn, MiscompiledFunctions)) {
|
||||
// Okay, we extracted some loops and the problem still appears. See if we
|
||||
|
Loading…
x
Reference in New Issue
Block a user