[llvm] [AMDGPU] Mark `SI_WATERFALL_LOOP` as divergent in `hasDivergentBranch` (PR #218969)

Jay Foad via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 27 04:12:35 PDT 2026


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

Makes sense to me. This is temporal divergence (%3 is uniform inside the loop and the exit condition is divergent) and the mechanism we have for preventing machine-sink from doing this is isSafeToSink caling hasDivergentBranch.

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


More information about the llvm-commits mailing list