Skip to content

Commit acbc314

Browse files
committed
fixup! [RISCV] Enable LoopDataPrefetch pass
use bits<32> and change default value to UINT_MAX
1 parent 376c215 commit acbc314

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

llvm/lib/Target/RISCV/RISCVProcessors.td

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class RISCVTuneInfo {
1818
bits<16> CacheLineSize = 0;
1919
bits<16> PrefetchDistance = 0;
2020
bits<16> MinPrefetchStride = 1;
21-
bits<16> MaxPrefetchIterationsAhead = 65535;
21+
bits<32> MaxPrefetchIterationsAhead = -1;
2222
}
2323

2424
def RISCVTuneInfoTable : GenericTable {

llvm/lib/Target/RISCV/RISCVSubtarget.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ struct RISCVTuneInfo {
4343
uint16_t CacheLineSize;
4444
uint16_t PrefetchDistance;
4545
uint16_t MinPrefetchStride;
46-
uint16_t MaxPrefetchIterationsAhead;
46+
unsigned MaxPrefetchIterationsAhead;
4747
};
4848

4949
#define GET_RISCVTuneInfoTable_DECL

0 commit comments

Comments
 (0)