summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorAdam Nemet <anemet@apple.com>2016-03-29 23:45:56 +0000
committerAdam Nemet <anemet@apple.com>2016-03-29 23:45:56 +0000
commitb81f1e0db354f87fde110a51d8def6e6910c7cdf (patch)
tree984219b83cf3a34d839304041f49838fcb5e3c34 /llvm/lib
parent1428d41f9a8a9dfed10b12b756a8a78a9d38a572 (diff)
downloadbcm5719-llvm-b81f1e0db354f87fde110a51d8def6e6910c7cdf.tar.gz
bcm5719-llvm-b81f1e0db354f87fde110a51d8def6e6910c7cdf.zip
[PPC] Remove -ppc-loop-prefetch-distance in favor of -prefetch-distance
After the previous change, this can now be overridden centrally in the pass. llvm-svn: 264807
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Target/PowerPC/PPCTargetTransformInfo.cpp12
1 files changed, 5 insertions, 7 deletions
diff --git a/llvm/lib/Target/PowerPC/PPCTargetTransformInfo.cpp b/llvm/lib/Target/PowerPC/PPCTargetTransformInfo.cpp
index a1f6528daea..85a684a8929 100644
--- a/llvm/lib/Target/PowerPC/PPCTargetTransformInfo.cpp
+++ b/llvm/lib/Target/PowerPC/PPCTargetTransformInfo.cpp
@@ -27,12 +27,6 @@ static cl::opt<unsigned>
CacheLineSize("ppc-loop-prefetch-cache-line", cl::Hidden, cl::init(64),
cl::desc("The loop prefetch cache line size"));
-// This seems like a reasonable default for the BG/Q (this pass is enabled, by
-// default, only on the BG/Q).
-static cl::opt<unsigned>
-PrefDist("ppc-loop-prefetch-distance", cl::Hidden, cl::init(300),
- cl::desc("The loop prefetch distance"));
-
//===----------------------------------------------------------------------===//
//
// PPC cost model.
@@ -249,7 +243,11 @@ unsigned PPCTTIImpl::getCacheLineSize() {
return CacheLineSize;
}
-unsigned PPCTTIImpl::getPrefetchDistance() { return PrefDist; }
+unsigned PPCTTIImpl::getPrefetchDistance() {
+ // This seems like a reasonable default for the BG/Q (this pass is enabled, by
+ // default, only on the BG/Q).
+ return 300;
+}
unsigned PPCTTIImpl::getMaxInterleaveFactor(unsigned VF) {
unsigned Directive = ST->getDarwinDirective();
OpenPOWER on IntegriCloud