Skip to content

Commit c359d56

Browse files
committed
Address review comment
1 parent 849eff1 commit c359d56

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/lib/Target/RISCV/RISCVISelLowering.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5352,8 +5352,8 @@ static bool isLocalRepeatingShuffle(ArrayRef<int> Mask, int Span) {
53525352

53535353
/// Is this mask only using elements from the first span of the input?
53545354
static bool isLowSourceShuffle(ArrayRef<int> Mask, int Span) {
5355-
return !any_of(Mask,
5356-
[&](const auto &Idx) { return Idx != -1 && Idx >= Span; });
5355+
return all_of(Mask,
5356+
[&](const auto &Idx) { return Idx == -1 || Idx < Span; });
53575357
}
53585358

53595359
/// Try to widen element type to get a new mask value for a better permutation

0 commit comments

Comments
 (0)