[llvm] a43e233 - Remove unused function 'isInRange'. NFCI.
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Sun Apr 5 15:11:38 PDT 2020
Author: Simon Pilgrim
Date: 2020-04-05T23:11:24+01:00
New Revision: a43e23360657e3df82af6b96b403d1a5a3174744
URL: https://github.com/llvm/llvm-project/commit/a43e23360657e3df82af6b96b403d1a5a3174744
DIFF: https://github.com/llvm/llvm-project/commit/a43e23360657e3df82af6b96b403d1a5a3174744.diff
LOG: Remove unused function 'isInRange'. NFCI.
Added:
Modified:
llvm/lib/Target/X86/X86ISelLowering.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/X86/X86ISelLowering.cpp b/llvm/lib/Target/X86/X86ISelLowering.cpp
index c4a9b8533c58..99577d5bba31 100644
--- a/llvm/lib/Target/X86/X86ISelLowering.cpp
+++ b/llvm/lib/Target/X86/X86ISelLowering.cpp
@@ -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) {
More information about the llvm-commits
mailing list