https://github.com/SixWeining approved this pull request. LGTM since currently there is no specialized address spaces on loongarch where casts aren't no-ops. If there is in future, the impl can be adjusted. https://github.com/llvm/llvm-project/pull/82332