[llvm] [RISCV] Enable LoopDataPrefetch pass (PR #66201)
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Sat Sep 16 12:39:59 PDT 2023
================
@@ -242,6 +248,22 @@ class RISCVSubtarget : public RISCVGenSubtargetInfo {
&Mutations) const override;
bool useAA() const override;
+
+ unsigned getCacheLineSize() const override {
+ return TuneInfo->CacheLineSize;
+ };
+ unsigned getPrefetchDistance() const override {
+ return TuneInfo->PrefetchDistance;
+ };
+ unsigned getMinPrefetchStride(unsigned NumMemAccesses,
+ unsigned NumStridedMemAccesses,
+ unsigned NumPrefetches,
+ bool HasCall) const override {
+ return TuneInfo->MinPrefetchStride;
+ };
+ unsigned getMaxPrefetchIterationsAhead() const override {
+ return TuneInfo->MaxPrefetchIterationsAhead;
----------------
topperc wrote:
Is it ok that this returns 65535 by default instead of the UINT_MAX like it used to?
https://github.com/llvm/llvm-project/pull/66201
More information about the llvm-commits
mailing list