diff options
| author | Evandro Menezes <e.menezes@samsung.com> | 2018-10-31 21:56:49 +0000 |
|---|---|---|
| committer | Evandro Menezes <e.menezes@samsung.com> | 2018-10-31 21:56:49 +0000 |
| commit | 3a06c464708b06f54e86911c37d796225bd9dfa8 (patch) | |
| tree | 597a003167340d0fa7fba75a54a622d3a6a30561 /llvm/lib | |
| parent | 6c3f1692c8e9455c831d3b2df103a8e86acf109e (diff) | |
| download | bcm5719-llvm-3a06c464708b06f54e86911c37d796225bd9dfa8.tar.gz bcm5719-llvm-3a06c464708b06f54e86911c37d796225bd9dfa8.zip | |
[AArch64] Sort switch cases (NFC)
llvm-svn: 345786
Diffstat (limited to 'llvm/lib')
| -rw-r--r-- | llvm/lib/Target/AArch64/AArch64Subtarget.cpp | 43 |
1 files changed, 23 insertions, 20 deletions
diff --git a/llvm/lib/Target/AArch64/AArch64Subtarget.cpp b/llvm/lib/Target/AArch64/AArch64Subtarget.cpp index c181f4016b6..49d737bea6a 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; } } |

