This is an archive of the discontinued LLVM Phabricator instance.

[opt] Inline a trivial lookup function into the header.
ClosedPublic

Authored by chandlerc on Jun 26 2015, 7:43 PM.

Details

Summary

This function is actually *very* hot. It is hard to see currently
because the call graph is very recursive, but I'm working to remove that
and when I do this function becomes significantly higher on the profile
(up to 5%!) and so worth avoiding the call overhead.

No specific perf gain I can measure yet (below the noise), but likely to
have more impact as we stop cluttering the call graph.

Diff Detail

Event Timeline

chandlerc updated this revision to Diff 28621.Jun 26 2015, 7:43 PM
chandlerc retitled this revision from to [opt] Inline a trivial lookup function into the header..
chandlerc updated this object.
chandlerc edited the test plan for this revision. (Show Details)
chandlerc added a reviewer: ruiu.
chandlerc added a subscriber: Unknown Object (MLST).
ruiu edited edge metadata.Jun 26 2015, 7:56 PM

LGTM.

This revision was automatically updated to reflect the committed changes.