Expertcoderz wrote: CC @Sirraide (This is a reopen of #228655 after my mistake caused many reviewers to be added. The changes to `getNamedLoopOrSwitch()` that you've suggested have been applied.) https://github.com/llvm/llvm-project/pull/228655