[llvm] [X86] Don't always seperate conditions in `(br (and/or cond0, cond1))` into seperate branches (PR #81689)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Feb 13 15:58:48 PST 2024
github-actions[bot] wrote:
<!--LLVM CODE FORMAT COMMENT: {clang-format}-->
:warning: C/C++ code formatter, clang-format found issues in your code. :warning:
<details>
<summary>
You can test this locally with the following command:
</summary>
``````````bash
git-clang-format --diff 79ce933114e46c891a5632f7ad4a004b93a5b808 b8e2f05c984f11369d52169a482289d4394aa53c -- llvm/include/llvm/CodeGen/TargetLowering.h llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp llvm/lib/Target/X86/X86ISelLowering.cpp llvm/lib/Target/X86/X86ISelLowering.h
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/Target/X86/X86ISelLowering.cpp b/llvm/lib/Target/X86/X86ISelLowering.cpp
index 8ff48630cf..9931aadfd6 100644
--- a/llvm/lib/Target/X86/X86ISelLowering.cpp
+++ b/llvm/lib/Target/X86/X86ISelLowering.cpp
@@ -81,23 +81,14 @@ static cl::opt<int> ExperimentalPrefInnermostLoopAlignment(
"alignment set by x86-experimental-pref-loop-alignment."),
cl::Hidden);
-static cl::opt<int> BrMergingBaseCostThresh(
- "x86-cond-base", cl::init(1),
- cl::desc(
- "Base."),
- cl::Hidden);
+static cl::opt<int> BrMergingBaseCostThresh("x86-cond-base", cl::init(1),
+ cl::desc("Base."), cl::Hidden);
-static cl::opt<int> BrMergingLikelyBias(
- "x86-cond-likely-bias", cl::init(0),
- cl::desc(
- "Likely."),
- cl::Hidden);
+static cl::opt<int> BrMergingLikelyBias("x86-cond-likely-bias", cl::init(0),
+ cl::desc("Likely."), cl::Hidden);
-static cl::opt<int> BrMergingUnlikelyBias(
- "x86-cond-unlikely-bias", cl::init(1),
- cl::desc(
- "Unlikely."),
- cl::Hidden);
+static cl::opt<int> BrMergingUnlikelyBias("x86-cond-unlikely-bias", cl::init(1),
+ cl::desc("Unlikely."), cl::Hidden);
static cl::opt<bool> MulConstantOptimization(
"mul-constant-optimization", cl::init(true),
``````````
</details>
https://github.com/llvm/llvm-project/pull/81689
More information about the llvm-commits
mailing list