[llvm] [AArch64] Disconnect FeatureUseScalarIncVL from FeatureSVE2. (PR #114568)
David Green via llvm-commits
llvm-commits at lists.llvm.org
Sun Nov 10 06:18:22 PST 2024
================
@@ -575,6 +579,14 @@ void AArch64Subtarget::mirFileLoaded(MachineFunction &MF) const {
bool AArch64Subtarget::useAA() const { return UseAA; }
+bool AArch64Subtarget::useScalarIncVL() const {
+ // If SVE2 or SME is present (we are not SVE-1 only) and UseScalarIncVL
+ // is not otherwise set, enable it by default.
+ if (UseScalarIncVL.getNumOccurrences())
+ return UseScalarIncVL;
----------------
davemgreen wrote:
Thanks - We would probably want go the other way and reintroduce the target features if we needed it for a specific CPU. The preferred way is for tuning features to control the options, which are applied to given cpus that they are relevant to.
https://github.com/llvm/llvm-project/pull/114568
More information about the llvm-commits
mailing list