[llvm] [SLSR] Avoid repeatably calling canReuseInstruction for the same Basis (PR #196545)

Jay Foad via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 2 02:37:13 PDT 2026


jayfoad wrote:

> How many compile-time gains does this PR give? I recall some cases that allocate a massive number of candidates, this change's overhead may be a concern. @Chengjunp, please review.

You could run it through https://llvm-compile-time-tracker.com/index.php, if SLSR is part of the standard optimization pipeline? (To do that I think you need to ask @nikic to add your fork of LLVM to the tracker, and then push to a branch named "perf/<anything>" on your fork.)

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


More information about the llvm-commits mailing list