This is an archive of the discontinued LLVM Phabricator instance.

[PGO] Adjust indirect call promotion threshold
ClosedPublic

Authored by tejohnson on Jun 1 2017, 1:55 PM.

Details

Summary

Reduce min percent required for indirect call promotion from 33% to 30%,
which matches gcc's threshold and catches the same hot opportunities.

Diff Detail

Repository
rL LLVM

Event Timeline

tejohnson created this revision.Jun 1 2017, 1:55 PM
davidxl accepted this revision.Jun 1 2017, 2:06 PM

this looks fine.

In the longer run, we should hook up the inline cost analysis with the icall promotion to compute the benefit of the promotion more quantitatively -- which can allow bumping down the threshold adaptively.

This revision is now accepted and ready to land.Jun 1 2017, 2:06 PM
This revision was automatically updated to reflect the committed changes.