This is an archive of the discontinued LLVM Phabricator instance.

SmallPtrSet: Put the part of insert() on small sets into the header
ClosedPublic

Authored by MatzeB on Jan 26 2016, 7:58 PM.

Details

Summary

Most of the time we only hit the small case, so it is beneficial to pull
it out of insert_imp(). This improves compile time at least for non-LTO builds.

Diff Detail

Repository
rL LLVM

Event Timeline

MatzeB updated this revision to Diff 46093.Jan 26 2016, 7:58 PM
MatzeB retitled this revision from to SmallPtrSet: Put the part of insert() on small sets into the header.
MatzeB updated this object.
MatzeB added reviewers: chandlerc, bkramer, reames, jduprat.
MatzeB set the repository for this revision to rL LLVM.
MatzeB added a subscriber: llvm-commits.
chandlerc accepted this revision.Jan 26 2016, 8:01 PM
chandlerc edited edge metadata.

Yea, this seems like obvious goodness.

This revision is now accepted and ready to land.Jan 26 2016, 8:01 PM
This revision was automatically updated to reflect the committed changes.
reames edited edge metadata.Jan 26 2016, 8:30 PM

LGTM to me as well. Thanks!