Skip to content

Commit 14774ad

Browse files
committed
[X86] Remove unused function (NFC)
llvm-project/llvm/lib/Target/X86/X86ISelLowering.cpp:3537:13: error: unused function 'isAnyZeroOrUndef' [-Werror,-Wunused-function] static bool isAnyZeroOrUndef(ArrayRef<int> Mask) { ^ 1 error generated.
1 parent 6acc50a commit 14774ad

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

llvm/lib/Target/X86/X86ISelLowering.cpp

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3532,14 +3532,6 @@ static bool isAnyZero(ArrayRef<int> Mask) {
35323532
return llvm::any_of(Mask, [](int M) { return M == SM_SentinelZero; });
35333533
}
35343534

3535-
/// Return true if the value of any element in Mask is the zero or undef
3536-
/// sentinel values.
3537-
static bool isAnyZeroOrUndef(ArrayRef<int> Mask) {
3538-
return llvm::any_of(Mask, [](int M) {
3539-
return M == SM_SentinelZero || M == SM_SentinelUndef;
3540-
});
3541-
}
3542-
35433535
/// Return true if Val is undef or if its value falls within the
35443536
/// specified range (L, H].
35453537
static bool isUndefOrInRange(int Val, int Low, int Hi) {

0 commit comments

Comments
 (0)