Files
clang-p2996/llvm/lib/CodeGen/PseudoSourceValue.cpp
aengelke e6d3a4212d [CodeGen] Use SmallVector for FixedStackPSVs (#91760)
Frame indices are dense and consecutive, so use a vector instead of a
std::map. Due to possibly negative frame indices, use zig-zag encoding.
IndexedMap was not usable, as it attempted to copy the null value, which
is not possible with a std::unique_ptr.

This is just a minor performance improvement, but a low-hanging fruit.
2024-05-14 13:13:24 +02:00

4.9 KiB