[llvm] [X86] Don't always seperate conditions in `(br (and/or cond0, cond1))` into seperate branches (PR #81689)

Simon Pilgrim via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 21 03:38:02 PST 2024


================
@@ -596,6 +596,20 @@ class TargetLoweringBase {
   /// avoided.
   bool isJumpExpensive() const { return JumpIsExpensive; }
 
+  struct CondMergingParams {
+    int BaseCost;
+    int LikelyBias;
+    int UnlikelyBias;
+  };
+  // Return params for deciding if we should keep two branch conditions merged
+  // or split them into two seperate branches.
----------------
RKSimon wrote:

Add paramater descriptions to the comment

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


More information about the llvm-commits mailing list