jrbyrnes wrote: > This also needs a LangRef patch to make the transform legal. Hi -- thanks for your comments. Do you mean a patch to update the addrspacecast documentation (esp w.r.t integral pointers)? https://github.com/llvm/llvm-project/pull/70483