[llvm] 9fe3ede - [X86] Use llvm::none_of (NFC) (#143398)
via llvm-commits
llvm-commits at lists.llvm.org
Mon Jun 9 12:46:34 PDT 2025
Author: Kazu Hirata
Date: 2025-06-09T12:46:30-07:00
New Revision: 9fe3ede18533503fec4eb5aaeced593186c419ce
URL: https://github.com/llvm/llvm-project/commit/9fe3ede18533503fec4eb5aaeced593186c419ce
DIFF: https://github.com/llvm/llvm-project/commit/9fe3ede18533503fec4eb5aaeced593186c419ce.diff
LOG: [X86] Use llvm::none_of (NFC) (#143398)
Added:
Modified:
llvm/lib/Target/X86/X86ISelLowering.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/X86/X86ISelLowering.cpp b/llvm/lib/Target/X86/X86ISelLowering.cpp
index 9ea45513cc019..3db7e2cbe8b93 100644
--- a/llvm/lib/Target/X86/X86ISelLowering.cpp
+++ b/llvm/lib/Target/X86/X86ISelLowering.cpp
@@ -14328,9 +14328,9 @@ static SDValue lowerV8I16GeneralSingleInputShuffle(
// At this point, each half should contain all its inputs, and we can then
// just shuffle them into their final position.
- assert(count_if(LoMask, [](int M) { return M >= 4; }) == 0 &&
+ assert(none_of(LoMask, [](int M) { return M >= 4; }) &&
"Failed to lift all the high half inputs to the low mask!");
- assert(count_if(HiMask, [](int M) { return M >= 0 && M < 4; }) == 0 &&
+ assert(none_of(HiMask, [](int M) { return M >= 0 && M < 4; }) &&
"Failed to lift all the low half inputs to the high mask!");
// Do a half shuffle for the low mask.
More information about the llvm-commits
mailing list