[llvm] [LLVM][AArch64]Use load/store with consecutive registers in SME2 or S… (PR #77665)
via llvm-commits
llvm-commits at lists.llvm.org
Mon Feb 19 09:23:43 PST 2024
================
@@ -1480,6 +1480,11 @@ static bool IsSVECalleeSave(MachineBasicBlock::iterator I) {
switch (I->getOpcode()) {
default:
return false;
+ case AArch64::PTRUE_C_B:
+ case AArch64::LD1B_2Z_IMM:
+ case AArch64::ST1B_2Z_IMM:
+ return I->getMF()->getSubtarget<AArch64Subtarget>().hasSVE2p1() ||
----------------
CarolineConcatto wrote:
I do think this is a good practice to double check here, because we should only be able to use these instructions when in sme2 or sve2p1
https://github.com/llvm/llvm-project/pull/77665
More information about the llvm-commits
mailing list