Unverified Commit d0c51f7d authored by Kai Nacke's avatar Kai Nacke Committed by GitHub
Browse files

[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: default avatarNikita Popov <github@npopov.com>
parent 2583b2ee
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment