Skip to content

Commit 92a1b2a

Browse files
[Analysis] Remove isArithmeticRecurrenceKind
The last use was removed on Jul 30, 2021 in commit 9d35594.
1 parent a0458d9 commit 92a1b2a

File tree

2 files changed

+0
-17
lines changed

2 files changed

+0
-17
lines changed

llvm/include/llvm/Analysis/IVDescriptors.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -215,9 +215,6 @@ class RecurrenceDescriptor {
215215
/// Returns true if the recurrence kind is a floating point kind.
216216
static bool isFloatingPointRecurrenceKind(RecurKind Kind);
217217

218-
/// Returns true if the recurrence kind is an arithmetic kind.
219-
static bool isArithmeticRecurrenceKind(RecurKind Kind);
220-
221218
/// Returns true if the recurrence kind is an integer min/max kind.
222219
static bool isIntMinMaxRecurrenceKind(RecurKind Kind) {
223220
return Kind == RecurKind::UMin || Kind == RecurKind::UMax ||

llvm/lib/Analysis/IVDescriptors.cpp

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -63,20 +63,6 @@ bool RecurrenceDescriptor::isFloatingPointRecurrenceKind(RecurKind Kind) {
6363
return (Kind != RecurKind::None) && !isIntegerRecurrenceKind(Kind);
6464
}
6565

66-
bool RecurrenceDescriptor::isArithmeticRecurrenceKind(RecurKind Kind) {
67-
switch (Kind) {
68-
default:
69-
break;
70-
case RecurKind::Add:
71-
case RecurKind::Mul:
72-
case RecurKind::FAdd:
73-
case RecurKind::FMul:
74-
case RecurKind::FMulAdd:
75-
return true;
76-
}
77-
return false;
78-
}
79-
8066
/// Determines if Phi may have been type-promoted. If Phi has a single user
8167
/// that ANDs the Phi with a type mask, return the user. RT is updated to
8268
/// account for the narrower bit width represented by the mask, and the AND

0 commit comments

Comments
 (0)