Skip to content
Unverified Commit fe146e9b authored by Wenju He's avatar Wenju He Committed by GitHub
Browse files

[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: default avatarAbhinav Gaba <abhinav.gaba@intel.com>

---------

Co-authored-by: default avatarAbhinav Gaba <abhinav.gaba@intel.com>
parent 63e13f2b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment