[llvm] LAA: add missed swap when inverting src, sink (PR #122254)

Ramkumar Ramachandra via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 9 05:50:19 PST 2025


================
@@ -1921,6 +1921,7 @@ MemoryDepChecker::getDependenceDistanceStrideAndSize(
   if (StrideAPtr && *StrideAPtr < 0) {
     std::swap(Src, Sink);
     std::swap(AInst, BInst);
+    std::swap(ATy, BTy);
----------------
artagnon wrote:

Good catch: fixed now :)

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


More information about the llvm-commits mailing list