[llvm] [AArch64][SME] Fix frame lowering not using a base pointer for SME functions. (PR #91643)

Amara Emerson via llvm-commits llvm-commits at lists.llvm.org
Tue May 14 11:27:11 PDT 2024


================
@@ -552,7 +552,9 @@ bool AArch64RegisterInfo::hasBasePointer(const MachineFunction &MF) const {
     if (hasStackRealignment(MF))
       return true;
 
-    if (MF.getSubtarget<AArch64Subtarget>().hasSVE()) {
+    auto &ST = MF.getSubtarget<AArch64Subtarget>();
+    if (ST.hasSVE() ||
+        (ST.hasSME() && ST.hasStreamingInterfaceOrBody(MF.getFunction()))) {
----------------
aemerson wrote:

Oh right, of course.

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


More information about the llvm-commits mailing list