[llvm] [X86] Use llvm::none_of (NFC) (PR #143398)
Kazu Hirata via llvm-commits
llvm-commits at lists.llvm.org
Mon Jun 9 08:29:26 PDT 2025
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/143398
None
>From dea8777c1810bff2873ab2c1df372ba3fa518e48 Mon Sep 17 00:00:00 2001
From: Kazu Hirata <kazu at google.com>
Date: Sun, 8 Jun 2025 22:50:25 -0700
Subject: [PATCH] [X86] Use llvm::none_of (NFC)
---
llvm/lib/Target/X86/X86ISelLowering.cpp | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/llvm/lib/Target/X86/X86ISelLowering.cpp b/llvm/lib/Target/X86/X86ISelLowering.cpp
index 244b0f9410b85..756986f924729 100644
--- a/llvm/lib/Target/X86/X86ISelLowering.cpp
+++ b/llvm/lib/Target/X86/X86ISelLowering.cpp
@@ -14309,9 +14309,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