Skip to content

Commit ed6a135

Browse files
[IVDescriptors] Remove getConsecutiveDirection (NFC)
The last use of the function was removed on Sep 18, 2016 in commit 5f8cc0c. The function was later moved to llvm/lib/Analysis/IVDescriptors.cpp on Sep 12, 2018 in commit 7e98d69.
1 parent b621116 commit ed6a135

File tree

2 files changed

+0
-13
lines changed

2 files changed

+0
-13
lines changed

llvm/include/llvm/Analysis/IVDescriptors.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -268,12 +268,6 @@ class InductionDescriptor {
268268
/// Default constructor - creates an invalid induction.
269269
InductionDescriptor() = default;
270270

271-
/// Get the consecutive direction. Returns:
272-
/// 0 - unknown or non-consecutive.
273-
/// 1 - consecutive and increasing.
274-
/// -1 - consecutive and decreasing.
275-
int getConsecutiveDirection() const;
276-
277271
Value *getStartValue() const { return StartValue; }
278272
InductionKind getKind() const { return IK; }
279273
const SCEV *getStep() const { return Step; }

llvm/lib/Analysis/IVDescriptors.cpp

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -927,13 +927,6 @@ InductionDescriptor::InductionDescriptor(Value *Start, InductionKind K,
927927
}
928928
}
929929

930-
int InductionDescriptor::getConsecutiveDirection() const {
931-
ConstantInt *ConstStep = getConstIntStepValue();
932-
if (ConstStep && (ConstStep->isOne() || ConstStep->isMinusOne()))
933-
return ConstStep->getSExtValue();
934-
return 0;
935-
}
936-
937930
ConstantInt *InductionDescriptor::getConstIntStepValue() const {
938931
if (isa<SCEVConstant>(Step))
939932
return dyn_cast<ConstantInt>(cast<SCEVConstant>(Step)->getValue());

0 commit comments

Comments
 (0)