[llvm] Attributor: Infer noalias.addrspace metadata for memory instructions (PR #136553)

Shilei Tian via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 25 20:48:23 PDT 2025


================
@@ -626,7 +627,8 @@ static void followUsesInContext(AAType &AA, Attributor &A,
     if (const Instruction *UserI = dyn_cast<Instruction>(U->getUser())) {
       bool Found = Explorer.findInContextOf(UserI, EIt, EEnd);
       if (Found && AA.followUseInMBEC(A, U, UserI, State))
-        Uses.insert_range(llvm::make_pointer_range(UserI->uses()));
+        for (const Use &Us : UserI->uses())
----------------
shiltian wrote:

what is this change about?

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


More information about the llvm-commits mailing list