Skip to content

Commit 52e3931

Browse files
committed
[RISCV] Add TuneNoDefaultUnroll to generic CPUs
Almost all CPUs have added this. We may enable it by default and remove this feature. Fixes #134272.
1 parent 7e6c1bd commit 52e3931

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

llvm/lib/Target/RISCV/RISCVProcessors.td

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,8 @@ class RISCVTuneProcessorModel<string n,
8686
list<SubtargetFeature> f = []>
8787
: ProcessorModel<n, m, f,tunef>;
8888

89-
defvar GenericTuneFeatures = [TuneOptimizedNF2SegmentLoadStore];
89+
defvar GenericTuneFeatures = [TuneOptimizedNF2SegmentLoadStore,
90+
TuneNoDefaultUnroll];
9091

9192
def GENERIC_RV32 : RISCVProcessorModel<"generic-rv32",
9293
NoSchedModel,

0 commit comments

Comments
 (0)