Files
clang-p2996/llvm/lib/CodeGen/MachineBasicBlock.cpp
Kai Nacke d0c51f7d54 [LiveIns] Improve recomputeLiveIns() (#88951)
Some small changes to recomputeLiveIns() to improve performance:

- Instead of copying the list of old live-ins, and then clearing
  them, a new method swaps the list for an empty one.
- getLiveIns() now returns a constant reference to the list

As result, the list-data is never copied. Depending on the
implementation
details of the vector container, it can also save calls to allocate
and deallocate memory.
I see a small improvement on CTMark with these changes.

---------

Co-authored-by: Nikita Popov <github@npopov.com>
2024-04-17 16:07:35 -04:00

60 KiB