[llvm] [X86] Widen zero-extended narrow lshr before isel (PR #207919)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 7 00:58:07 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 c86dadbf2..5ab7855ae 100644
--- a/llvm/lib/Target/X86/X86ISelLowering.cpp
+++ b/llvm/lib/Target/X86/X86ISelLowering.cpp
@@ -57665,8 +57665,7 @@ static SDValue combineZext(SDNode *N, SelectionDAG &DAG,
if (WideVT == VT && Wide.getOpcode() == ISD::AssertZext && ShiftAmt &&
*ShiftAmt < NarrowBits) {
- APInt HighBits =
- APInt::getHighBitsSet(WideBits, WideBits - NarrowBits);
+ APInt HighBits = APInt::getHighBitsSet(WideBits, WideBits - NarrowBits);
if (DAG.MaskedValueIsZero(Wide, HighBits)) {
SDValue WideShiftAmt =
DAG.getShiftAmountConstant(*ShiftAmt, VT, SDLoc(N0));
``````````
</details>
https://github.com/llvm/llvm-project/pull/207919
More information about the llvm-commits
mailing list