Created attachment 18668 [details] Test case I'm seeing an issue for the AMDGCN backend (llc -march=amdgcn <testcase>.ll) where the RegisterCoalescer hits unreachable for a SubRange join I think I've narrowed this down to an issue in a remat (hence the name) I've got a potential fix for this that I'll post to reviews.llvm.org (and link from here) I've already verified that the fix doesn't make any difference to bug 33152 which superficially seems similar. bug 32773 may also be related
See https://reviews.llvm.org/D34391 for a potential fix
Possibly the same as bug 33152
https://reviews.llvm.org/D34391 now submitted