This is an archive of the discontinued LLVM Phabricator instance.

SmallPtrSet: Only initialize NumTombstones when not small anymore.
AbandonedPublic

Authored by MatzeB on Jan 27 2016, 8:57 PM.

Details

Summary

SmallPtrSets stay small in the majority of cases so this is just another
memory operation that can be avoid in the common case.

Diff Detail

Repository
rL LLVM

Event Timeline

MatzeB updated this revision to Diff 46215.Jan 27 2016, 8:57 PM
MatzeB retitled this revision from to SmallPtrSet: Only initialize NumTombstones when not small anymore..
MatzeB updated this object.
MatzeB added reviewers: dblaikie, chandlerc, reames, bkramer.
MatzeB set the repository for this revision to rL LLVM.
MatzeB added a subscriber: llvm-commits.
chandlerc accepted this revision.Jan 27 2016, 10:15 PM
chandlerc edited edge metadata.

Nice.

This revision is now accepted and ready to land.Jan 27 2016, 10:15 PM
MatzeB abandoned this revision.Jan 28 2016, 7:48 PM

Abandoning because this is not compatible anymore with the new version of http://reviews.llvm.org/D16672