[llvm] [LLVM][AArch64]Use load/store with consecutive registers in SME2 or S… (PR #77665)
Sander de Smalen via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 25 01:37:02 PDT 2024
================
@@ -2781,6 +2784,28 @@ struct RegPairInfo {
} // end anonymous namespace
+static unsigned getPredicateAsCounterReg(unsigned Reg) {
+ switch (Reg) {
+ case AArch64::P8:
+ return AArch64::PN8;
+ case AArch64::P9:
+ return AArch64::PN9;
+ case AArch64::P10:
+ return AArch64::PN10;
+ case AArch64::P11:
+ return AArch64::PN11;
+ case AArch64::P12:
+ return AArch64::PN12;
+ case AArch64::P13:
+ return AArch64::PN13;
+ case AArch64::P14:
+ return AArch64::PN14;
+ case AArch64::P15:
+ return AArch64::PN15;
+ }
+ return 0;
+}
----------------
sdesmalen-arm wrote:
I think you can remove this function and replace its use with `AArch64::PN0 + (Reg - AArch64::P0)`
https://github.com/llvm/llvm-project/pull/77665
More information about the llvm-commits
mailing list