Skip to content

Commit 9fe3ede

Browse files
[X86] Use llvm::none_of (NFC) (#143398)
1 parent 6e6ba60 commit 9fe3ede

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/lib/Target/X86/X86ISelLowering.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14328,9 +14328,9 @@ static SDValue lowerV8I16GeneralSingleInputShuffle(
1432814328

1432914329
// At this point, each half should contain all its inputs, and we can then
1433014330
// just shuffle them into their final position.
14331-
assert(count_if(LoMask, [](int M) { return M >= 4; }) == 0 &&
14331+
assert(none_of(LoMask, [](int M) { return M >= 4; }) &&
1433214332
"Failed to lift all the high half inputs to the low mask!");
14333-
assert(count_if(HiMask, [](int M) { return M >= 0 && M < 4; }) == 0 &&
14333+
assert(none_of(HiMask, [](int M) { return M >= 0 && M < 4; }) &&
1433414334
"Failed to lift all the low half inputs to the high mask!");
1433514335

1433614336
// Do a half shuffle for the low mask.

0 commit comments

Comments
 (0)