[Attributor][NFC] Use a BumpPtrAllocator to allocate `AbstractAttribute`s
authorJohannes Doerfert <johannes@jdoerfert.de>
Thu, 2 Apr 2020 01:41:35 +0000 (20:41 -0500)
committerJohannes Doerfert <johannes@jdoerfert.de>
Thu, 2 Apr 2020 01:53:28 +0000 (20:53 -0500)
commit41f2a57d0bc1c54cefc3145102632fc5e767d953
tree93f771978cf070c13692e5de014bff0500460505
parent6cd673345cfa7b1dc25568ac9fd45e23402bbd02
[Attributor][NFC] Use a BumpPtrAllocator to allocate `AbstractAttribute`s

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.

Reviewed By: baziotis

Differential Revision: https://reviews.llvm.org/D76589
llvm/include/llvm/Transforms/IPO/Attributor.h
llvm/lib/Transforms/IPO/Attributor.cpp