[llvm] [LICM] Remove unnecessary check during store hoisting (PR #187529)

Antonio Frighetto via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 13 04:40:53 PDT 2026


https://github.com/antoniofrighetto approved this pull request.

LGTM.

If the store to be hoisted writes onto a memory location that would be clobbered within the loop, that would be checked at the very beginning, prior to visiting the MemoryUses. If we happen to read a value whose memory location is written in a loop (for instance, by a def that we would like to hoist), that would be caught before the existing dominate check (thus preventing hoisting).

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


More information about the llvm-commits mailing list