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

Commit a9bfad5

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 (cherry picked from commit 1e5a354)
1 parent 90d1b2d commit a9bfad5

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.
@@ -248,7 +242,11 @@ unsigned PPCTTIImpl::getCacheLineSize() {
248242
return CacheLineSize;
249243
}
250244

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

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

0 commit comments

Comments
 (0)