diff --git a/llvm/lib/Target/AArch64/AArch64Subtarget.cpp b/llvm/lib/Target/AArch64/AArch64Subtarget.cpp index c181f4016b60..49d737bea6a6 100644 --- a/llvm/lib/Target/AArch64/AArch64Subtarget.cpp +++ b/llvm/lib/Target/AArch64/AArch64Subtarget.cpp @@ -67,16 +67,30 @@ void AArch64Subtarget::initializeProperties() { // this in the future so we can specify it together with the subtarget // features. switch (ARMProcFamily) { + case Others: + break; + case CortexA35: + break; + case CortexA53: + PrefFunctionAlignment = 3; + break; + case CortexA55: + break; + case CortexA57: + MaxInterleaveFactor = 4; + PrefFunctionAlignment = 4; + break; + case CortexA72: + case CortexA73: + case CortexA75: + PrefFunctionAlignment = 4; + break; case Cyclone: CacheLineSize = 64; PrefetchDistance = 280; MinPrefetchStride = 2048; MaxPrefetchIterationsAhead = 3; break; - case CortexA57: - MaxInterleaveFactor = 4; - PrefFunctionAlignment = 4; - break; case ExynosM1: MaxInterleaveFactor = 4; MaxJumpTableSize = 8; @@ -98,11 +112,6 @@ void AArch64Subtarget::initializeProperties() { MinPrefetchStride = 2048; MaxPrefetchIterationsAhead = 8; break; - case Saphira: - MaxInterleaveFactor = 4; - // FIXME: remove this to enable 64-bit SLP if performance looks good. - MinVectorRegisterBitWidth = 128; - break; case Kryo: MaxInterleaveFactor = 4; VectorInsertExtractBaseCost = 2; @@ -113,6 +122,11 @@ void AArch64Subtarget::initializeProperties() { // FIXME: remove this to enable 64-bit SLP if performance looks good. MinVectorRegisterBitWidth = 128; break; + case Saphira: + MaxInterleaveFactor = 4; + // FIXME: remove this to enable 64-bit SLP if performance looks good. + MinVectorRegisterBitWidth = 128; + break; case ThunderX2T99: CacheLineSize = 64; PrefFunctionAlignment = 3; @@ -134,17 +148,6 @@ void AArch64Subtarget::initializeProperties() { // FIXME: remove this to enable 64-bit SLP if performance looks good. MinVectorRegisterBitWidth = 128; break; - case CortexA35: break; - case CortexA53: - PrefFunctionAlignment = 3; - break; - case CortexA55: break; - case CortexA72: - case CortexA73: - case CortexA75: - PrefFunctionAlignment = 4; - break; - case Others: break; } }