[llvm-branch-commits] [llvm] IR: Remove uselist for constantdata (PR #134692)

Nikita Popov via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Sun Apr 13 05:02:04 PDT 2025


https://github.com/nikic commented:

Compile-time: https://llvm-compile-time-tracker.com/compare.php?from=09588e93bbe486ce782de9fba604f5cd184ec446&to=54260021fd4ffa41b5f20994af7b34653b4d4d42&stat=instructions%3Au It's possible that the wall-time picture may be different due to slightly less memory traffic, but I suspect the overhead of having two different code paths in a lot of common operations dominates.

This does make me wonder though if we wouldn't be better off keeping the actual use lists and just asserting that they aren't accessed (and excluding them from uselistorder, as they cannot matter). Given that we still have to keep the Next/Prev pointers in Use, we're not really gaining much from dropping the list.

https://github.com/llvm/llvm-project/pull/134692


More information about the llvm-branch-commits mailing list