bcl5980 wrote: AMDGPU can not unorll this case: https://godbolt.org/z/4Pq3bnzTT But the same code in X86 looks can unroll: https://godbolt.org/z/zr8aTG1KW We may need to continue debug on it. https://github.com/llvm/llvm-project/pull/74268