[llvm] [AST] Don't merge memory locations in AliasSetTracker (PR #65731)

Johannes Doerfert via llvm-commits llvm-commits at lists.llvm.org
Mon Oct 9 13:15:55 PDT 2023


================
@@ -1158,8 +1158,9 @@ bool ScopDetection::isValidAccess(Instruction *Inst, const SCEV *AF,
         const unsigned int VariantSize = VariantLS.size(),
                            InvariantSize = InvariantLS.size();
 
-        for (const auto &Ptr : AS) {
-          Instruction *Inst = dyn_cast<Instruction>(Ptr.getValue());
+        for (const auto &MemLoc : AS) {
----------------
jdoerfert wrote:

We could provide a convenience API to iterate the pointers instead.

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


More information about the llvm-commits mailing list