Skip to content
This repository was archived by the owner on Mar 28, 2020. It is now read-only.

Commit 1e5a354

Browse files
committed
[PPC] Remove -ppc-loop-prefetch-distance in favor of -prefetch-distance
After the previous change, this can now be overridden centrally in the pass. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@264807 91177308-0d34-0410-b5e6-96231b3b80d8
1 parent 515ab47 commit 1e5a354

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

lib/Target/PowerPC/PPCTargetTransformInfo.cpp

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,6 @@ static cl::opt<unsigned>
2727
CacheLineSize("ppc-loop-prefetch-cache-line", cl::Hidden, cl::init(64),
2828
cl::desc("The loop prefetch cache line size"));
2929

30-
// This seems like a reasonable default for the BG/Q (this pass is enabled, by
31-
// default, only on the BG/Q).
32-
static cl::opt<unsigned>
33-
PrefDist("ppc-loop-prefetch-distance", cl::Hidden, cl::init(300),
34-
cl::desc("The loop prefetch distance"));
35-
3630
//===----------------------------------------------------------------------===//
3731
//
3832
// PPC cost model.
@@ -249,7 +243,11 @@ unsigned PPCTTIImpl::getCacheLineSize() {
249243
return CacheLineSize;
250244
}
251245

252-
unsigned PPCTTIImpl::getPrefetchDistance() { return PrefDist; }
246+
unsigned PPCTTIImpl::getPrefetchDistance() {
247+
// This seems like a reasonable default for the BG/Q (this pass is enabled, by
248+
// default, only on the BG/Q).
249+
return 300;
250+
}
253251

254252
unsigned PPCTTIImpl::getMaxInterleaveFactor(unsigned VF) {
255253
unsigned Directive = ST->getDarwinDirective();

0 commit comments

Comments
 (0)