artagnon wrote: > I might be missing something, but wouldn't this need a test with debug location for the loop? Then the output should be stable? Fixed now, thanks for the review! https://github.com/llvm/llvm-project/pull/93051