[llvm] [RISCV] Enable LoopDataPrefetch pass (PR #66201)
Wang Pengcheng via llvm-commits
llvm-commits at lists.llvm.org
Wed Sep 20 00:24:02 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;
----------------
wangpc-pp wrote:
Ah, that is because of bug I should have fixed in #66867. I will change it to `UINT_MAX` after #66867 is merged.
https://github.com/llvm/llvm-project/pull/66201
More information about the llvm-commits
mailing list