[llvm] [X86] lower1BitShuffle - recognise a blend shuffle that can lower to AND/MASKZ pattern (PR #179717)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Feb 4 10:30:30 PST 2026
github-actions[bot] wrote:
<!--PREMERGE ADVISOR COMMENT: Linux-->
# :penguin: Linux x64 Test Results
* 3104 tests passed
* 7 tests skipped
All executed tests passed, but another part of the build **failed**. Click on a failure below to see the details.
<details>
<summary>lib/Target/X86/CMakeFiles/LLVMX86CodeGen.dir/X86ISelLowering.cpp.o</summary>
```
FAILED: lib/Target/X86/CMakeFiles/LLVMX86CodeGen.dir/X86ISelLowering.cpp.o
sccache /opt/llvm/bin/clang++ -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GLIBCXX_USE_CXX11_ABI=1 -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/gha/actions-runner/_work/llvm-project/llvm-project/build/lib/Target/X86 -I/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Target/X86 -I/home/gha/actions-runner/_work/llvm-project/llvm-project/build/include -I/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include -gmlt -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wc++98-compat-extra-semi -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wno-pass-failed -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -std=c++17 -fvisibility=hidden -UNDEBUG -fno-exceptions -funwind-tables -fno-rtti -MD -MT lib/Target/X86/CMakeFiles/LLVMX86CodeGen.dir/X86ISelLowering.cpp.o -MF lib/Target/X86/CMakeFiles/LLVMX86CodeGen.dir/X86ISelLowering.cpp.o.d -o lib/Target/X86/CMakeFiles/LLVMX86CodeGen.dir/X86ISelLowering.cpp.o -c /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Target/X86/X86ISelLowering.cpp
/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Target/X86/X86ISelLowering.cpp:18352:46: error: comparison of integers of different signs: 'std::size_t' (aka 'unsigned long') and 'const int' [-Werror,-Wsign-compare]
18352 | return Zeroable[M.index()] || (M.index() == M.value());
| ~~~~~~~~~ ^ ~~~~~~~~~
/usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/predefined_ops.h:395:17: note: in instantiation of function template specialization 'lower1BitShuffle(const SDLoc &, ArrayRef<int>, MVT, SDValue, SDValue, const APInt &, const X86Subtarget &, SelectionDAG &)::(anonymous class)::operator()<llvm::detail::enumerator_result<unsigned long, const int &>>' requested here
395 | { return !bool(_M_pred(*__it)); }
| ^
/usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/stl_algobase.h:2055:36: note: in instantiation of function template specialization '__gnu_cxx::__ops::_Iter_negate<(lambda at /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Target/X86/X86ISelLowering.cpp:18351:50)>::operator()<llvm::detail::zip_enumerator<llvm::detail::index_iterator, const int *>>' requested here
2055 | while (__first != __last && !__pred(__first))
| ^
/usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/stl_algo.h:112:19: note: in instantiation of function template specialization 'std::__find_if<llvm::detail::zip_enumerator<llvm::detail::index_iterator, const int *>, __gnu_cxx::__ops::_Iter_negate<(lambda at /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Target/X86/X86ISelLowering.cpp:18351:50)>>' requested here
112 | return std::__find_if(__first, __last,
| ^
/usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/stl_algo.h:519:19: note: in instantiation of function template specialization 'std::__find_if_not<llvm::detail::zip_enumerator<llvm::detail::index_iterator, const int *>, __gnu_cxx::__ops::_Iter_pred<(lambda at /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Target/X86/X86ISelLowering.cpp:18351:50)>>' requested here
519 | return std::__find_if_not(__first, __last,
| ^
/usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/stl_algo.h:459:29: note: in instantiation of function template specialization 'std::find_if_not<llvm::detail::zip_enumerator<llvm::detail::index_iterator, const int *>, (lambda at /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Target/X86/X86ISelLowering.cpp:18351:50)>' requested here
459 | { return __last == std::find_if_not(__first, __last, __pred); }
| ^
/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/ADT/STLExtras.h:1738:15: note: in instantiation of function template specialization 'std::all_of<llvm::detail::zip_enumerator<llvm::detail::index_iterator, const int *>, (lambda at /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Target/X86/X86ISelLowering.cpp:18351:50)>' requested here
1738 | return std::all_of(adl_begin(Range), adl_end(Range), P);
| ^
/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Target/X86/X86ISelLowering.cpp:18351:26: note: in instantiation of function template specialization 'llvm::all_of<llvm::detail::zippy<llvm::detail::zip_enumerator, llvm::detail::index_stream, llvm::ArrayRef<int> &>, (lambda at /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Target/X86/X86ISelLowering.cpp:18351:50)>' requested here
18351 | bool IsBlendWithZero = all_of(enumerate(Mask), [&Zeroable](auto M) {
| ^
1 error generated.
```
</details>
If these failures are unrelated to your changes (for example tests are broken or flaky at HEAD), please open an issue at https://github.com/llvm/llvm-project/issues and add the `infrastructure` label.
https://github.com/llvm/llvm-project/pull/179717
More information about the llvm-commits
mailing list