[PATCH] D136180: [FuncSpec] Compute specialisation gain even when forcing specialisation
Alexandros Lamprineas via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Oct 18 14:15:43 PDT 2022
labrinea added inline comments.
================
Comment at: llvm/lib/Transforms/IPO/FunctionSpecialization.cpp:456
// Remove unprofitable specializations.
- Specializations.remove_if(
- [](const auto &Entry) { return Entry.second.Gain <= 0; });
+ if (!ForceFunctionSpecialization)
+ Specializations.remove_if(
----------------
I can see that you are not removing unprofitable specializations, which means you've preserved the "force" semantics of the command line option. Have you checked whether any of the existing tests breaks with this change?
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D136180/new/
https://reviews.llvm.org/D136180
More information about the llvm-commits
mailing list