[llvm] [OptBisect] Add function filtering support to opt-bisect (PR #222123)
Daniel Donenfeld via llvm-commits
llvm-commits at lists.llvm.org
Fri Oct 2 13:47:06 PDT 2026
================
@@ -86,15 +86,24 @@ static cl::list<std::string> OptDisablePasses(
}),
cl::desc("Optimization pass(es) to disable (comma-separated list)"));
+static cl::list<std::string> OptBisectFuncsList(
+ "opt-bisect-funcs", cl::value_desc("function names"), cl::CommaSeparated,
+ cl::cb<void, std::string>([](const std::string &FuncName) {
+ getOptBisector().setEnabledFunc(FuncName);
+ }),
+ cl::Hidden,
+ cl::desc("Only perform opt bisect for functions that are included in this "
+ "list and if empty, apply to all functions."));
----------------
daniel-donenfeld wrote:
You are correct, I'll push a fix for this
https://github.com/llvm/llvm-project/pull/222123
More information about the llvm-commits
mailing list