rupprecht wrote: Yes, this seems like something that's difficult to test. I verified it fixed some targets, but will add another PR if I discover something else. Thanks for the merge & cherry pick, @nikic https://github.com/llvm/llvm-project/pull/149007