[llvm] [WPD][ThinLTO]Add cutoff option for WPD (PR #113383)
Teresa Johnson via llvm-commits
llvm-commits at lists.llvm.org
Tue Oct 22 22:29:43 PDT 2024
================
@@ -1169,6 +1177,10 @@ void DevirtModule::applySingleImplDevirt(VTableSlotInfo &SlotInfo,
if (!OptimizedCalls.insert(&VCallSite.CB).second)
continue;
+ if (WholeProgramDevirtCutoff.getNumOccurrences() > 0 &&
+ NumSingleImpl >= WholeProgramDevirtCutoff)
----------------
teresajohnson wrote:
NumSingleImpl is a STATISTIC - I'm not sure if it is safe to use this here as I believe the compiler can be built with statistics disabled, in which case this variable would not be correctly tracking the number.
https://github.com/llvm/llvm-project/pull/113383
More information about the llvm-commits
mailing list