aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Utils/LoopUtils.cpp
diff options
context:
space:
mode:
authorNathan James <n.james93@hotmail.co.uk>2021-01-12 22:43:48 +0000
committerNathan James <n.james93@hotmail.co.uk>2021-01-12 22:43:48 +0000
commita7130d85e4b9e47b18a89eac3d47fd8c19d449c1 (patch)
tree3f7b721705c03c68b8eaaf021d33447c95e8f0c8 /llvm/lib/Transforms/Utils/LoopUtils.cpp
parent55f2eeebc96e7522e49e19074cbfbe4e7f074b5b (diff)
downloadllvm-a7130d85e4b9e47b18a89eac3d47fd8c19d449c1.zip
llvm-a7130d85e4b9e47b18a89eac3d47fd8c19d449c1.tar.gz
llvm-a7130d85e4b9e47b18a89eac3d47fd8c19d449c1.tar.bz2
[ADT][NFC] Use empty base optimisation in BumpPtrAllocatorImpl
Most uses of this class just use the default MallocAllocator. As this contains no fields, we can use the empty base optimisation for BumpPtrAllocatorImpl and save 8 bytes of padding for most use cases. This prevents using a class that is marked as `final` as the `AllocatorT` template argument. In one must use an allocator that has been marked as `final`, the simplest way around this is a proxy class. The class should have all the methods that `AllocaterBase` expects and should forward the calls to your own allocator instance. Reviewed By: dblaikie Differential Revision: https://reviews.llvm.org/D94439
Diffstat (limited to 'llvm/lib/Transforms/Utils/LoopUtils.cpp')
0 files changed, 0 insertions, 0 deletions