diff options
author | Chris Lattner <sabre@nondot.org> | 2006-06-13 03:10:48 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2006-06-13 03:10:48 +0000 |
commit | 20ec1654b1bc94a52aaa5f1edee24334382e2658 (patch) | |
tree | 37f24770748079fc5e3c5febe10c375683f4160e /llvm/tools/bugpoint/ExecutionDriver.cpp | |
parent | d2d29a088ee015e4c5a74d78a23eed342e702cbb (diff) | |
download | bcm5719-llvm-20ec1654b1bc94a52aaa5f1edee24334382e2658.tar.gz bcm5719-llvm-20ec1654b1bc94a52aaa5f1edee24334382e2658.zip |
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!
llvm-svn: 28763
Diffstat (limited to 'llvm/tools/bugpoint/ExecutionDriver.cpp')
-rw-r--r-- | llvm/tools/bugpoint/ExecutionDriver.cpp | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/llvm/tools/bugpoint/ExecutionDriver.cpp b/llvm/tools/bugpoint/ExecutionDriver.cpp index 72e564ec3c0..5743804a146 100644 --- a/llvm/tools/bugpoint/ExecutionDriver.cpp +++ b/llvm/tools/bugpoint/ExecutionDriver.cpp @@ -63,11 +63,6 @@ namespace { cl::desc("Additional shared objects to load " "into executing programs")); - cl::opt<unsigned> - TimeoutValue("timeout", cl::init(300), cl::value_desc("seconds"), - cl::desc("Number of seconds program is allowed to run before it " - "is killed (default is 300s), 0 disables timeout")); - cl::list<std::string> AdditionalLinkerArgs("Xlinker", cl::desc("Additional arguments to pass to the linker")); @@ -231,11 +226,11 @@ std::string BugDriver::executeProgram(std::string OutputFile, if (InterpreterSel == RunLLC || InterpreterSel == RunCBE) RetVal = AI->ExecuteProgram(BytecodeFile, InputArgv, InputFile, OutputFile, AdditionalLinkerArgs, SharedObjs, - TimeoutValue); + Timeout); else RetVal = AI->ExecuteProgram(BytecodeFile, InputArgv, InputFile, OutputFile, std::vector<std::string>(), - SharedObjs, TimeoutValue); + SharedObjs, Timeout); if (RetVal == -1) { std::cerr << "<timeout>"; |