skatrak wrote: > Can you add a test as the first commit and show the difference (removal of barrier) in the second commit along with the code in this patch? Done, let me know if that works for you. https://github.com/llvm/llvm-project/pull/127074