This is an archive of the discontinued LLVM Phabricator instance.

[Attributor][NFC] Use a BumpPtrAllocator to allocate `AbstractAttribute`s
ClosedPublic

Authored by jdoerfert on Mar 22 2020, 11:59 PM.

Details

Summary

We create a lot of AbstractAttributes and they live as long as
the Attributor does. It seems reasonable to allocate them via a
BumpPtrAllocator owned by the Attributor.

Diff Detail

Event Timeline

jdoerfert created this revision.Mar 22 2020, 11:59 PM
Herald added a project: Restricted Project. · View Herald TranscriptMar 22 2020, 11:59 PM
baziotis accepted this revision.Mar 23 2020, 7:10 AM

Seems reasonable.

This revision is now accepted and ready to land.Mar 23 2020, 7:10 AM
This revision was automatically updated to reflect the committed changes.