Skip to content

Commit

Permalink
Remove unused function 'isInRange'. NFCI.
Browse files Browse the repository at this point in the history
  • Loading branch information
RKSimon committed Apr 5, 2020
1 parent 4431a29 commit a43e233
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions llvm/lib/Target/X86/X86ISelLowering.cpp
Expand Up @@ -5408,12 +5408,6 @@ static bool isInRange(int Val, int Low, int Hi) {
return (Val >= Low && Val < Hi);
}

/// Return true if every element value in Mask falls within the specified
/// range (L, H].
static bool isInRange(ArrayRef<int> Mask, int Low, int Hi) {
return llvm::all_of(Mask, [Low, Hi](int M) { return isInRange(M, Low, Hi); });
}

/// Return true if the value of any element in Mask falls within the specified
/// range (L, H].
static bool isAnyInRange(ArrayRef<int> Mask, int Low, int Hi) {
Expand Down

0 comments on commit a43e233

Please sign in to comment.