[llvm-branch-commits] [llvm] [EarlyIfCvt] Take branch probablities into consideration (PR #97808)

2024-07-09 Thread Mikhail Gudim via llvm-branch-commits
mgudim wrote: > [EarlyIfCvt] Take branch probablities into consideration It looks like this MR is only adding a target hook, so this title doesn't make sense to me https://github.com/llvm/llvm-project/pull/97808 ___ llvm-branch-commits mailing list l

[llvm-branch-commits] [llvm] [EarlyIfCvt] Take branch probablities into consideration (PR #97808)

2024-07-09 Thread Mikhail Gudim via llvm-branch-commits
@@ -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; } + -