[llvm] [LoopUnroll] Invalidate SCEV after full unrolling (PR #208874)

via llvm-commits llvm-commits at lists.llvm.org
Sun Jul 12 06:39:07 PDT 2026


Michael-Chen-NJU wrote:

> I think the issue #207744 appears to be caused by PR #201572.
> 
> I checked that reverting the PR makes the testcase print `checksum=0x0000000000000005` at both `-O0` and `-O3`.

Thanks, this matches my investigation as well. #201572 exposed the issue by making `forgetLoop()` stop walking the def-use chain from loop header phis.

If we go with reverting #201572, then my LoopUnroll-side fix is probably unnecessary. I can turn my PR into a test-only PR.

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


More information about the llvm-commits mailing list