Skip to content

Commit 97fa626

Browse files
committed
Remove unused pattern match functions
Remove sNaN + qNaN patterns added in earlier version of the patch, since they are no longer used in the new elementwise approach.
1 parent 4e7a52e commit 97fa626

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

llvm/include/llvm/IR/PatternMatch.h

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -707,25 +707,10 @@ m_SpecificInt_ICMP(ICmpInst::Predicate Predicate, const APInt &Threshold) {
707707
struct is_nan {
708708
bool isValue(const APFloat &C) const { return C.isNaN(); }
709709
};
710-
711-
struct is_snan {
712-
bool isValue(const APFloat &C) const { return C.isSignaling(); }
713-
};
714-
715-
struct is_qnan {
716-
bool isValue(const APFloat &C) const { return C.isNaN() && !C.isSignaling(); }
717-
};
718-
719710
/// Match an arbitrary NaN constant. This includes quiet and signalling nans.
720711
/// For vectors, this includes constants with undefined elements.
721712
inline cstfp_pred_ty<is_nan> m_NaN() { return cstfp_pred_ty<is_nan>(); }
722713

723-
/// Match quiet NaN constants, including vectors with undefined elements.
724-
inline cstfp_pred_ty<is_qnan> m_qNaN() { return cstfp_pred_ty<is_qnan>(); }
725-
726-
/// Match signalling NaN constants, including vectors with undefined elements.
727-
inline cstfp_pred_ty<is_snan> m_sNaN() { return cstfp_pred_ty<is_snan>(); }
728-
729714
struct is_nonnan {
730715
bool isValue(const APFloat &C) const { return !C.isNaN(); }
731716
};

0 commit comments

Comments
 (0)