[llvm] [InferAddressSpaces] Fix constant replace to avoid modifying other functions (PR #70611)

Wenju He via llvm-commits llvm-commits at lists.llvm.org
Mon Oct 30 00:41:47 PDT 2023


================
@@ -334,6 +335,15 @@ template<> struct simplify_type<User::const_op_iterator> {
   }
 };
 
+template <> struct GraphTraits<User *> {
----------------
wenju-he wrote:

see my other comment for why df is needed. Adding GraphTraits is a convenient way to iterate over user using df_begin/df_end.

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


More information about the llvm-commits mailing list