The SplitFunctions pass does not distinguish between various splitting
modes anymore. This change updates the command line interface to
reflect this behavior by deprecating values passed to the
--split-function option.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
bolt/lib/Passes/SplitFunctions.cpp | ||
---|---|---|
35 | Yes, this patch does not change the behavior when passing "2" or "3" to -split-functions. The only visible change is the warning being emitted. |
That's awesome, thanks
You might want to wait if other reviewers have any more comments
bolt/lib/Passes/SplitFunctions.cpp | ||
---|---|---|
35 | We discussed the WithColor::warning() change offline and agreed it's a good idea to have it, but it has to be done in a consistent manner for all BOLT output. It's fine to keep errs() for now. |
Non-boolean values are deprecated, but would they still be accepted?
Also, to make that warning stand out, please use WithColor::warning() (see example use in D126722).