[llvm-branch-commits] [llvm] [EarlyIfCvt] Take branch probablities into consideration (PR #97808)
Mikhail Gudim via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Tue Jul 9 23:46:02 PDT 2024
================
@@ -913,6 +913,10 @@ class TargetInstrInfo : public MCInstrInfo {
return false;
}
+ /// Return true if the target will always try to convert predictable branches
+ /// to selects.
+ virtual bool shouldConvertPredictableBranches() const { return true; }
+
----------------
mgudim wrote:
The default should be `false`
https://github.com/llvm/llvm-project/pull/97808
More information about the llvm-branch-commits
mailing list