[llvm] [LoopFlatten] Invalidate SCEV on each widening (PR #211819)

Nikita Popov via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 8 02:54:28 PDT 2026


nikic wrote:

> Please expand your PR description. What changes does LoopFlatten do prior to bailing out that require invalidation?

This was not addressed. Too late for the PR description, but can you please explain in a comment what exactly is going on here? It's not at all obvious to me why inserting a wide IV would require any kind of invalidation (and the use of this helper in IndVars does not invalidate anything).

Please clarify how the IR changes, what the cached information is, and why it becomes invalid after the transform.

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


More information about the llvm-commits mailing list