llvm-project
397d83c9 - [WholeProgramDevirt] Use indirect-call profile counts for fallback branches (#237377)

Commit
5 days ago
[WholeProgramDevirt] Use indirect-call profile counts for fallback branches (#237377) Fallback and speculative devirtualization always treated the version check as likely, even when the call already had a value profile showing how often the direct target was hit. When the profile names that target, split the total count into the count for the target and the count for everything else, and use those as the branch weights. Keep the likely weights when the call has no value profile, when the total count is zero, or when the profile does not name this target.
Author
Parents
Loading