[llvm] [CodeGen] Update for scalable MemoryType in MMO (PR #70452)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 28 03:27:00 PST 2023


================
@@ -249,10 +246,20 @@ bool GISelAddressing::instMayAlias(const MachineInstr &MI,
       return false;
   }
 
+  // If NumBytes is scalable and offset is not 0, conservatively return may
+  // alias
+  if ((MUC0.NumBytes.isScalable() && (MUC0.Offset != 0)) ||
+      (MUC1.NumBytes.isScalable() && (MUC1.Offset != 0)))
+    return true;
+
+  const bool BothNotScalable =
+      !(MUC0.NumBytes.isScalable() || MUC1.NumBytes.isScalable());
----------------
arsenm wrote:

!isScalable && !isScalable 

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


More information about the llvm-commits mailing list