This is an archive of the discontinued LLVM Phabricator instance.

Store pointers to seen formatting states.
ClosedPublic

Authored by djasper on Feb 17 2013, 11:21 PM.

Details

Reviewers
klimek
djasper
Summary

As the memory ownership is handled by the SpecificBumpPtrAllocator anyway, there is no need to duplicate states when inserting them into the Seen-set. This leads to an improvement of ~10% on the benchmark formatting file. Not sure whether this is worth it, or whether we should straight away look into implementing this as a hash map.

Diff Detail

Event Timeline

djasper accepted this revision.May 22 2014, 4:54 AM
djasper added a reviewer: djasper.

As there was no objection by now, I assume this is acceptable.

This revision is now accepted and ready to land.May 22 2014, 4:54 AM
djasper closed this revision.May 22 2014, 4:54 AM

Submitted as r209422.