[llvm-branch-commits] [llvm] [RISCV] Support select optimization (PR #80124)

Craig Topper via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Mon Mar 18 16:47:56 PDT 2024


================
@@ -1046,6 +1046,14 @@ def FeatureFastUnalignedAccess
 def FeaturePostRAScheduler : SubtargetFeature<"use-postra-scheduler",
     "UsePostRAScheduler", "true", "Schedule again after register allocation">;
 
+def FeaturePredictableSelectIsExpensive
+  : SubtargetFeature<"predictable-select-expensive", "PredictableSelectIsExpensive",
+                     "true", "Prefer likely predicted branches over selects">;
+
+def FeatureEnableSelectOptimize
+  : SubtargetFeature<"enable-select-opt", "EnableSelectOptimize", "true",
+                    "Enable the select optimize pass for select loop heuristics">;
----------------
topperc wrote:

This needs to be indented 1 more space

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


More information about the llvm-branch-commits mailing list