rampitec added a comment. I do not see range info anywhere... In fact it is only generated in AMDGPUPromoteAlloca for newly inserted calls in alloca handling. Anyway, I will try to patch AMDGPULowerIntrinsics now. Repository: rL LLVM https://reviews.llvm.org/D31804