[InferAddressSpaces] Fix constant replace to avoid modifying other functions (#70611)
A constant value is unique in llvm context. InferAddressSpaces was replacing its users in other functions as well. This leads to unexpected behavior in our downstream use case after the pass. InferAddressSpaces is a function passe, so it shall not modify functions other than currently processed one. Co-authored-by:Abhinav Gaba <abhinav.gaba@intel.com> --------- Co-authored-by:
Abhinav Gaba <abhinav.gaba@intel.com>
Loading
Please sign in to comment