summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/SystemZ/SystemZTargetTransformInfo.h
diff options
context:
space:
mode:
authorJonas Paulsson <paulsson@linux.vnet.ibm.com>2017-07-14 13:52:38 +0000
committerJonas Paulsson <paulsson@linux.vnet.ibm.com>2017-07-14 13:52:38 +0000
commit89ca10de33c7e688594c2da3be1f89581e1123aa (patch)
treedc37f9c481aef2f7722e963c7c878e9eaa313464 /llvm/lib/Target/SystemZ/SystemZTargetTransformInfo.h
parentb3529841db7de92eab80a4b6aee88170343e4dd4 (diff)
downloadbcm5719-llvm-89ca10de33c7e688594c2da3be1f89581e1123aa.tar.gz
bcm5719-llvm-89ca10de33c7e688594c2da3be1f89581e1123aa.zip
[SystemZ] Enable LoopDataPrefetch pass.
Loop data prefetching has shown some improvements on benchmarks, and is enabled at -O1 and above. Review: Ulrich Weigand llvm-svn: 308024
Diffstat (limited to 'llvm/lib/Target/SystemZ/SystemZTargetTransformInfo.h')
-rw-r--r--llvm/lib/Target/SystemZ/SystemZTargetTransformInfo.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/lib/Target/SystemZ/SystemZTargetTransformInfo.h b/llvm/lib/Target/SystemZ/SystemZTargetTransformInfo.h
index 6923fc6fc91..a0c6fa94f8c 100644
--- a/llvm/lib/Target/SystemZ/SystemZTargetTransformInfo.h
+++ b/llvm/lib/Target/SystemZ/SystemZTargetTransformInfo.h
@@ -56,6 +56,10 @@ public:
unsigned getNumberOfRegisters(bool Vector);
unsigned getRegisterBitWidth(bool Vector) const;
+ unsigned getCacheLineSize() { return 256; }
+ unsigned getPrefetchDistance() { return 2000; }
+ unsigned getMinPrefetchStride() { return 2048; }
+
bool prefersVectorizedAddressing() { return false; }
bool supportsEfficientVectorElementLoadStore() { return true; }
bool enableInterleavedAccessVectorization() { return true; }
OpenPOWER on IntegriCloud