[llvm-branch-commits] [llvm] [AArch64] Prepare for split ZPR and PPR area allocation (NFCI) (PR #142391)

Sander de Smalen via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Mon Jul 7 09:04:21 PDT 2025


================
@@ -1605,25 +1634,19 @@ static bool isTargetWindows(const MachineFunction &MF) {
   return MF.getSubtarget<AArch64Subtarget>().isTargetWindows();
 }
 
-static unsigned getStackHazardSize(const MachineFunction &MF) {
-  return MF.getSubtarget<AArch64Subtarget>().getStreamingHazardSize();
-}
-
 // Convenience function to determine whether I is an SVE callee save.
-static bool IsSVECalleeSave(MachineBasicBlock::iterator I) {
+static bool IsZPRCalleeSave(MachineBasicBlock::iterator I) {
----------------
sdesmalen-arm wrote:

nit: given that you're renaming these, what about calling them `isPartOfZPRCalleeSave` (because a `PTRUE_B` instruction is not a callee-save in itself)

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


More information about the llvm-branch-commits mailing list