[llvm] [InferAddressSpaces] Infer pointer stored and then loaded from global variable (PR #159755)

Wenju He via llvm-commits llvm-commits at lists.llvm.org
Mon Sep 22 01:50:20 PDT 2025


wenju-he wrote:

> This probably belongs in an IPO pass, and not this function pass

does it make sense to add a module pass variant of InferAddressSpacesPass? Module pass would allow more optimizations, like modifying global variable type and function argument type after inferring.

https://github.com/llvm/llvm-project/pull/159755


More information about the llvm-commits mailing list