[llvm] [X86] Fold chained i32 CLMUL operands (PR #202250)
via llvm-commits
llvm-commits at lists.llvm.org
Mon Jun 8 23:11:23 PDT 2026
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 origin/main HEAD --extensions cpp -- llvm/lib/Target/X86/X86ISelLowering.cpp --diff_from_common_commit
``````````
:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:
</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 9d20f0713..ca841ff9a 100644
--- a/llvm/lib/Target/X86/X86ISelLowering.cpp
+++ b/llvm/lib/Target/X86/X86ISelLowering.cpp
@@ -45477,11 +45477,11 @@ bool X86TargetLowering::SimplifyDemandedBitsForTargetNode(
APInt LoElts = APInt::getSplat(NumElts, APInt(2, 0b01));
APInt SrcBits = APInt::getLowBitsSet(BitWidth, DemandedLoBits);
KnownBits KnownLHS, KnownRHS;
- if (SimplifyDemandedBits(Op.getOperand(0), SrcBits,
- M0 ? HighElts : LoElts, KnownLHS, TLO, Depth + 1))
+ if (SimplifyDemandedBits(Op.getOperand(0), SrcBits, M0 ? HighElts : LoElts,
+ KnownLHS, TLO, Depth + 1))
return true;
- if (SimplifyDemandedBits(Op.getOperand(1), SrcBits,
- M1 ? HighElts : LoElts, KnownRHS, TLO, Depth + 1))
+ if (SimplifyDemandedBits(Op.getOperand(1), SrcBits, M1 ? HighElts : LoElts,
+ KnownRHS, TLO, Depth + 1))
return true;
auto PeelToVector = [&](SDValue Operand, uint64_t M) -> SDValue {
@@ -45505,7 +45505,8 @@ bool X86TargetLowering::SimplifyDemandedBitsForTargetNode(
MinScalarBits = std::min(MinScalarBits, Inner.getScalarValueSizeInBits());
if (Inner.getOpcode() != ISD::EXTRACT_VECTOR_ELT ||
- !isNullConstant(Inner.getOperand(1)) || DemandedLoBits > MinScalarBits)
+ !isNullConstant(Inner.getOperand(1)) ||
+ DemandedLoBits > MinScalarBits)
return SDValue();
SDValue Src = Inner.getOperand(0);
``````````
</details>
https://github.com/llvm/llvm-project/pull/202250
More information about the llvm-commits
mailing list