[NFC] Move useSVEForFixedLengthVectors into AArch64Subtarget.h
authorDavid Sherwood <david.sherwood@arm.com>
Fri, 21 Jan 2022 09:56:49 +0000 (09:56 +0000)
committerDavid Sherwood <david.sherwood@arm.com>
Tue, 25 Jan 2022 09:49:04 +0000 (09:49 +0000)
Given how small the function is and how often it gets used it
makes more sense to live in the header file.

Differential Revision: https://reviews.llvm.org/D117883

llvm/lib/Target/AArch64/AArch64Subtarget.cpp
llvm/lib/Target/AArch64/AArch64Subtarget.h

index f4d0460..a4f4b85 100644 (file)
@@ -373,9 +373,4 @@ void AArch64Subtarget::mirFileLoaded(MachineFunction &MF) const {
     MFI.computeMaxCallFrameSize(MF);
 }
 
-bool AArch64Subtarget::useSVEForFixedLengthVectors() const {
-  // Prefer NEON unless larger SVE registers are available.
-  return hasSVE() && getMinSVEVectorSizeInBits() >= 256;
-}
-
 bool AArch64Subtarget::useAA() const { return UseAA; }
index 5057dbe..3e3c0f6 100644 (file)
@@ -680,7 +680,10 @@ public:
     return MinSVEVectorSizeInBits;
   }
 
-  bool useSVEForFixedLengthVectors() const;
+  bool useSVEForFixedLengthVectors() const {
+    // Prefer NEON unless larger SVE registers are available.
+    return hasSVE() && getMinSVEVectorSizeInBits() >= 256;
+  }
 
   unsigned getVScaleForTuning() const { return VScaleForTuning; }
 };