[llvm] [LoopDist] Add some runtime checks for cross partition loads (PR #145623)
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Fri Jul 18 13:55:47 PDT 2025
================
@@ -521,6 +521,21 @@ class InstPartitionContainer {
Partition = -1;
}
assert(Partition != -2 && "Pointer not belonging to any partition");
+ // All the store context uses of our address were processed,
+ // Now make sure we don't have cross partition loads.
+ if (RtPtrCheck->Pointers[I].IsWritePtr) {
+ if (Ptr->hasOneUse() || Partition == -1)
+ continue;
+
+ for (User *U : Ptr->users())
----------------
fhahn wrote:
Hmm, do we ensure we also handle cases where `Ptr` is used by loads with another pointer-op in between?
https://github.com/llvm/llvm-project/pull/145623
More information about the llvm-commits
mailing list