[llvm] [LLVM][LICM] Skip unrelated accesses when looking for hoist/sink conflicting instructions. (PR #195132)

Nikita Popov via llvm-commits llvm-commits at lists.llvm.org
Fri May 1 02:44:42 PDT 2026


nikic wrote:

Can you share a test for what this fixes?

This is going in a similar direction as https://github.com/llvm/llvm-project/pull/191468 -- just without the change to how the memory accesses are walked.

It should be fine in principle to do it this way. In that case we should drop the clobber walk entirely though, doing both is redundant.

This will have some tradeoffs though because the clobber walk is cached, while these queries are not (well, they are cached in BatchAA, but only within this one call).

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


More information about the llvm-commits mailing list