[llvm] [X86] lowerFPToIntToFP - handle UI2FP on AVX512VL targets and i64 types on AVX512DQ targets (PR #162656)
via llvm-commits
llvm-commits at lists.llvm.org
Sat Oct 11 13:34:28 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 origin/main HEAD --extensions cpp -- llvm/lib/Target/X86/X86ISelLowering.cpp
``````````
: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 9b033a71d..d2a0f730c 100644
--- a/llvm/lib/Target/X86/X86ISelLowering.cpp
+++ b/llvm/lib/Target/X86/X86ISelLowering.cpp
@@ -19963,7 +19963,7 @@ static SDValue lowerFPToIntToFP(SDValue CastToFP, const SDLoc &DL,
unsigned NumElts = Width / IntSize;
VecIntVT = MVT::getVectorVT(IntVT, NumElts);
unsigned SrcElts, VTElts;
- // vcvttps2qq cannot convert v16f32 <-> v8i64
+ // vcvttps2qq cannot convert v16f32 <-> v8i64
if (IntVT == MVT::i64 && Width == 512) {
SrcElts = NumElts;
VTElts = NumElts;
@@ -19971,7 +19971,7 @@ static SDValue lowerFPToIntToFP(SDValue CastToFP, const SDLoc &DL,
SrcElts = Width / SrcSize;
VTElts = Width / VTSize;
}
-
+
VecSrcVT = MVT::getVectorVT(SrcVT, SrcElts);
VecVT = MVT::getVectorVT(VT, VTElts);
// sint_to_fp (fp_to_sint X) --> extelt (sint_to_fp (fp_to_sint (s2v X))), 0
``````````
</details>
https://github.com/llvm/llvm-project/pull/162656
More information about the llvm-commits
mailing list