[llvm] [WPD][ThinLTO]Add cutoff option for WPD (PR #113383)
Mingming Liu via llvm-commits
llvm-commits at lists.llvm.org
Wed Oct 23 20:22:32 PDT 2024
================
@@ -1169,6 +1177,10 @@ void DevirtModule::applySingleImplDevirt(VTableSlotInfo &SlotInfo,
if (!OptimizedCalls.insert(&VCallSite.CB).second)
continue;
+ if (WholeProgramDevirtCutoff.getNumOccurrences() > 0 &&
+ NumSingleImpl >= WholeProgramDevirtCutoff)
----------------
minglotus-6 wrote:
Thanks for the catch!
I added `static unsigned NumDevirtCalls` to track the number of de-virtualized calls.
https://github.com/llvm/llvm-project/pull/113383
More information about the llvm-commits
mailing list