[llvm-branch-commits] [llvm] [RISCV] Support select optimization (PR #80124)
Craig Topper via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Mon Feb 26 21:42:51 PST 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",
----------------
topperc wrote:
If there are no in tree targets using it should we default this to false?
https://github.com/llvm/llvm-project/pull/80124
More information about the llvm-branch-commits
mailing list