[llvm] Add GFNI-based LZCNT lowering for vXi8 (PR #141888)

via llvm-commits llvm-commits at lists.llvm.org
Wed May 28 19:26:16 PDT 2025


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 HEAD~1 HEAD --extensions cpp -- llvm/lib/Target/X86/X86ISelLowering.cpp
``````````

</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 7918a8e72..6215b2533 100644
--- a/llvm/lib/Target/X86/X86ISelLowering.cpp
+++ b/llvm/lib/Target/X86/X86ISelLowering.cpp
@@ -29040,7 +29040,6 @@ static SDValue LowerCTLZ(SDValue Op, const X86Subtarget &Subtarget,
   SDLoc dl(Op);
   unsigned Opc = Op.getOpcode();
 
-  
   if (VT.isVector() && VT.getScalarType() == MVT::i8 && Subtarget.hasGFNI())
     return LowerVectorCTLZ_GFNI(Op, DAG, Subtarget);
 

``````````

</details>


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


More information about the llvm-commits mailing list