https://github.com/arsenm commented: Can you also test that this works if you use the address spaces through __attribute__((address_space(N)))? Based on the switch I think it misses those https://github.com/llvm/llvm-project/pull/178909