[llvm] r264807 - [PPC] Remove -ppc-loop-prefetch-distance in favor of -prefetch-distance

Adam Nemet via llvm-commits llvm-commits at lists.llvm.org
Tue Mar 29 16:45:56 PDT 2016


Author: anemet
Date: Tue Mar 29 18:45:56 2016
New Revision: 264807

URL: http://llvm.org/viewvc/llvm-project?rev=264807&view=rev
Log:
[PPC] Remove -ppc-loop-prefetch-distance in favor of -prefetch-distance

After the previous change, this can now be overridden centrally in the
pass.

Modified:
    llvm/trunk/lib/Target/PowerPC/PPCTargetTransformInfo.cpp

Modified: llvm/trunk/lib/Target/PowerPC/PPCTargetTransformInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/PowerPC/PPCTargetTransformInfo.cpp?rev=264807&r1=264806&r2=264807&view=diff
==============================================================================
--- llvm/trunk/lib/Target/PowerPC/PPCTargetTransformInfo.cpp (original)
+++ llvm/trunk/lib/Target/PowerPC/PPCTargetTransformInfo.cpp Tue Mar 29 18:45:56 2016
@@ -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();




More information about the llvm-commits mailing list