[llvm] [X86] Use llvm::none_of (NFC) (PR #143398)
via llvm-commits
llvm-commits at lists.llvm.org
Mon Jun 9 08:30:02 PDT 2025
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-backend-x86
Author: Kazu Hirata (kazutakahirata)
<details>
<summary>Changes</summary>
---
Full diff: https://github.com/llvm/llvm-project/pull/143398.diff
1 Files Affected:
- (modified) llvm/lib/Target/X86/X86ISelLowering.cpp (+2-2)
``````````diff
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.
``````````
</details>
https://github.com/llvm/llvm-project/pull/143398
More information about the llvm-commits
mailing list