[llvm] [AArch64] Cleanup existing values in getMemOpInfo (PR #98196)

Sander de Smalen via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 1 00:45:56 PDT 2024


================
@@ -3722,26 +3945,26 @@ bool AArch64InstrInfo::getMemOpInfo(unsigned Opcode, TypeSize &Scale,
   case AArch64::STNPWi:
   case AArch64::STNPSi:
     Scale = TypeSize::getFixed(4);
-    Width = TypeSize::getFixed(8);
+    Width = TypeSize::getFixed(4 * 2);
     MinOffset = -64;
     MaxOffset = 63;
     break;
   // pre/post inc
   case AArch64::STPQpre:
   case AArch64::LDPQpost:
     Scale = TypeSize::getFixed(16);
-    Width = TypeSize::getFixed(16);
-    MinOffset = -1024;
-    MaxOffset = 1008;
+    Width = TypeSize::getFixed(16 * 2);
----------------
sdesmalen-arm wrote:

nit: these case statement can be combined with the ones for `LDPQi`, etc?

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


More information about the llvm-commits mailing list