diff options
author | Benjamin Maxwell <benjamin.maxwell@arm.com> | 2025-08-20 08:59:31 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-08-20 08:59:31 +0100 |
commit | eb2af3a5beaaa71a6088b8e0c940b209fdbea3c8 (patch) | |
tree | 1cf97502ea44edaed0e039534ce21dd5e940ab1d /llvm/lib/Transforms/Utils/BasicBlockUtils.cpp | |
parent | e3cf967cdf75bfda50aff2600d6e6a15cae0d8c3 (diff) | |
download | llvm-eb2af3a5beaaa71a6088b8e0c940b209fdbea3c8.zip llvm-eb2af3a5beaaa71a6088b8e0c940b209fdbea3c8.tar.gz llvm-eb2af3a5beaaa71a6088b8e0c940b209fdbea3c8.tar.bz2 |
[ComplexDeinterleaving] Use BumpPtrAllocator for CompositeNodes (NFC) (#153217)
I was looking over this pass and noticed it was using shared pointers
for CompositeNodes. However, all nodes are owned by the deinterleaving
graph and are not released until the graph is destroyed. This means a
bump allocator and raw pointers can be used, which have a simpler
ownership model and less overhead than shared pointers.
The changes in this PR are to:
- Add a `SpecificBumpPtrAllocator<CompositeNode>` to the
`ComplexDeinterleavingGraph`
- This allocates new nodes and will deallocate them when the graph is
destroyed
- Replace `NodePtr` and `RawNodePtr` with `CompositeNode *`
Diffstat (limited to 'llvm/lib/Transforms/Utils/BasicBlockUtils.cpp')
0 files changed, 0 insertions, 0 deletions