[llvm] [RISCV] Adopt SpacemitX60's scheduling model for `-mtune=generic` (PR #167008)

Sam Elliott via llvm-commits llvm-commits at lists.llvm.org
Fri Nov 7 14:42:06 PST 2025


================
@@ -102,7 +102,12 @@ def GENERIC_RV64 : RISCVProcessorModel<"generic-rv64",
                    GenericTuneInfo;
 // Support generic for compatibility with other targets. The triple will be used
 // to change to the appropriate rv32/rv64 version.
-def GENERIC : RISCVTuneProcessorModel<"generic", NoSchedModel>, GenericTuneInfo;
+// `generic` is expected to target in-order application processors designed for
+// general-purpose computing.
+def GENERIC : RISCVTuneProcessorModel<"generic", SpacemitX60Model>,
----------------
lenary wrote:

Yes, we should just update the codegen tests, IMO.

https://github.com/llvm/llvm-project/pull/167008


More information about the llvm-commits mailing list