Skip to content

[X86] Use llvm::none_of (NFC) #143398

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions llvm/lib/Target/X86/X86ISelLowering.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
Loading