diff options
| author | Alexis Engelke <engelke@in.tum.de> | 2026-01-21 16:28:28 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-01-21 15:28:28 +0000 |
| commit | 3b5910de4223f0efafabeb352956d6711fd84c59 (patch) | |
| tree | c60756a78422323269c6128fa562e28bd48bf62d /llvm/lib/Bitcode/Reader/BitcodeReader.cpp | |
| parent | 3dda4b54634f1fef31d372c7a3a41438770e7c04 (diff) | |
| download | llvm-3b5910de4223f0efafabeb352956d6711fd84c59.zip llvm-3b5910de4223f0efafabeb352956d6711fd84c59.tar.gz llvm-3b5910de4223f0efafabeb352956d6711fd84c59.tar.bz2 | |
[ADT][NFC] Use block numbers for po_iterator (#177182)
Avoid using hash maps for {Machine,}BasicBlock. Use SmallVector<bool>
instead of BitVector for faster access, the memory cost should be
neglibible compared to the size of basic blocks or a pointer set. The
test change is required, because a nullptr BasicBlock cannot be asked
for its number.
With the current rather complicated design of po_iterator, reserving is
not easily possible.
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
0 files changed, 0 insertions, 0 deletions
