Teach bugpoint to kill optimization passes that run over the timeout limit,

which allows it to debug optimizer infinite loops.  This patch is contributed
by Nick Lewycky, thanks!


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28763 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner
2006-06-13 03:10:48 +00:00
parent 81c01f0d2c
commit 9686ae7f4e
5 changed files with 14 additions and 12 deletions
+3 -2
View File
@@ -62,9 +62,10 @@ std::string llvm::getPassesString(const std::vector<const PassInfo*> &Passes) {
return Result;
}
BugDriver::BugDriver(const char *toolname, bool as_child)
BugDriver::BugDriver(const char *toolname, bool as_child, unsigned timeout)
: ToolName(toolname), ReferenceOutputFile(OutputFile),
Program(0), Interpreter(0), cbe(0), gcc(0), run_as_child(as_child) {}
Program(0), Interpreter(0), cbe(0), gcc(0), run_as_child(as_child),
Timeout(timeout) {}
/// ParseInputFile - Given a bytecode or assembly input filename, parse and