diff options
author | Daniel Berlin <dberlin@dberlin.org> | 2017-03-11 01:41:03 +0000 |
---|---|---|
committer | Daniel Berlin <dberlin@dberlin.org> | 2017-03-11 01:41:03 +0000 |
commit | 14f5c47c1d72b3f470acba02c46ec3e80ab59fea (patch) | |
tree | e307384bed27060de3bd4e6c542dc7fd0311299d /llvm/lib | |
parent | ce43bd224293905b9ac0303b463d1b2963213367 (diff) | |
download | bcm5719-llvm-14f5c47c1d72b3f470acba02c46ec3e80ab59fea.tar.gz bcm5719-llvm-14f5c47c1d72b3f470acba02c46ec3e80ab59fea.zip |
Remove opt-bisect support for "cases" in favor of debug counters
Summary:
Ths "cases" support was not quite finished, is unused, and is really just debug counters.
(well, almost, debug counters are slightly more powerful, in that they can skip things at the start, too).
Note, opt-bisect itself could also be implemented as a wrapper around
debug counters, but not sure it's worth it ATM.
I'll shove it on a todo list if we think it is.
Reviewers: MatzeB, chandlerc
Subscribers: llvm-commits
Differential Revision: https://reviews.llvm.org/D30856
llvm-svn: 297542
Diffstat (limited to 'llvm/lib')
-rw-r--r-- | llvm/lib/IR/OptBisect.cpp | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/llvm/lib/IR/OptBisect.cpp b/llvm/lib/IR/OptBisect.cpp index e9574ca8126..b670c817569 100644 --- a/llvm/lib/IR/OptBisect.cpp +++ b/llvm/lib/IR/OptBisect.cpp @@ -39,14 +39,6 @@ static void printPassMessage(const StringRef &Name, int PassNum, << "(" << PassNum << ") " << Name << " on " << TargetDesc << "\n"; } -static void printCaseMessage(int CaseNum, StringRef Msg, bool Running) { - if (Running) - errs() << "BISECT: running case ("; - else - errs() << "BISECT: NOT running case ("; - errs() << CaseNum << "): " << Msg << "\n"; -} - static std::string getDescription(const Module &M) { return "module (" + M.getName().str() + ")"; } @@ -108,13 +100,3 @@ bool OptBisect::checkPass(const StringRef PassName, printPassMessage(PassName, CurBisectNum, TargetDesc, ShouldRun); return ShouldRun; } - -bool OptBisect::shouldRunCase(const Twine &Msg) { - if (!BisectEnabled) - return true; - int CurFuelNum = ++LastBisectNum; - bool ShouldRun = (OptBisectLimit == -1 || CurFuelNum <= OptBisectLimit); - printCaseMessage(CurFuelNum, Msg.str(), ShouldRun); - return ShouldRun; -} - |