]> granicus.if.org Git - llvm/commitdiff
[Falkor] Enable SW Prefetch.
authorHaicheng Wu <haicheng@codeaurora.org>
Mon, 12 Jun 2017 16:34:19 +0000 (16:34 +0000)
committerHaicheng Wu <haicheng@codeaurora.org>
Mon, 12 Jun 2017 16:34:19 +0000 (16:34 +0000)
SW prefetch is good for Falkor.

Differential Revision: http://reviews.llvm.org/D34084

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@305199 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/AArch64/AArch64Subtarget.cpp

index d3cab1ad3397331e817edffcd62488ed5548f675..a9a9d5ce842973fab1248a59d20239775219a340 100644 (file)
@@ -92,6 +92,10 @@ void AArch64Subtarget::initializeProperties() {
     MaxInterleaveFactor = 4;
     // FIXME: remove this to enable 64-bit SLP if performance looks good.
     MinVectorRegisterBitWidth = 128;
+    CacheLineSize = 128;
+    PrefetchDistance = 820;
+    MinPrefetchStride = 2048;
+    MaxPrefetchIterationsAhead = 8;
     break;
   case Kryo:
     MaxInterleaveFactor = 4;