[llvm] [RISCV] Enable select optimization by default (PR #178394)

Luke Lau via llvm-commits llvm-commits at lists.llvm.org
Sun Feb 8 20:40:39 PST 2026


================
@@ -103,7 +103,8 @@ def GENERIC_RV64 : RISCVProcessorModel<"generic-rv64",
 // 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;
-def GENERIC_OOO : RISCVTuneProcessorModel<"generic-ooo", GenericOOOModel>,
+def GENERIC_OOO : RISCVTuneProcessorModel<"generic-ooo", GenericOOOModel,
+                                          [FeatureEnableSelectOptimize]>,
----------------
lukel97 wrote:

Should we just add it to GenericTuneFeatures for in-order cores too?

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


More information about the llvm-commits mailing list