[llvm] [X86][GlobalISel] Adding missing Query to G_BUILD_VECTOR legalization (PR #199435)
via llvm-commits
llvm-commits at lists.llvm.org
Sun May 24 10:28:17 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/GISel/X86LegalizerInfo.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/GISel/X86LegalizerInfo.cpp b/llvm/lib/Target/X86/GISel/X86LegalizerInfo.cpp
index 334587b85..11f330ff4 100644
--- a/llvm/lib/Target/X86/GISel/X86LegalizerInfo.cpp
+++ b/llvm/lib/Target/X86/GISel/X86LegalizerInfo.cpp
@@ -547,7 +547,8 @@ X86LegalizerInfo::X86LegalizerInfo(const X86Subtarget &STI,
return (HasSSE1 && typeInSet(0, {v4s32})(Query)) ||
(HasSSE2 && typeInSet(0, {v2s64, v8s16, v16s8})(Query)) ||
(HasAVX && typeInSet(0, {v4s64, v8s32, v16s16, v32s8})(Query)) ||
- (HasAVX512 && typeInSet(0, {v8s64, v16s32, v32s16, v64s8})(Query));
+ (HasAVX512 &&
+ typeInSet(0, {v8s64, v16s32, v32s16, v64s8})(Query));
})
.clampNumElements(0, v16s8, s8MaxVector)
.clampNumElements(0, v8s16, s16MaxVector)
``````````
</details>
https://github.com/llvm/llvm-project/pull/199435
More information about the llvm-commits
mailing list