================ ---------------- ro-i wrote: And I guess that AMDGPUUnifyDivergentExitNodes is replacing unreachable by amdgcn_unreachable because unreachable is a terminator and thus cannot be threaded to a unified exit node https://github.com/llvm/llvm-project/pull/201675