Skip to content

Commit 9293b25

Browse files
[Analysis/Interval] Remove isLoop (NFC)
The last use of isLoop was removed on Apr 29, 2002 in commit 09bbb5c as part of an effort to remove "old induction varaible cannonicalization pass built on top of interval analysis".
1 parent 215c1b1 commit 9293b25

File tree

2 files changed

+0
-14
lines changed

2 files changed

+0
-14
lines changed

llvm/include/llvm/Analysis/Interval.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,9 +89,6 @@ class Interval {
8989
return HeaderNode == I.HeaderNode;
9090
}
9191

92-
/// isLoop - Find out if there is a back edge in this interval...
93-
bool isLoop() const;
94-
9592
/// print - Show contents in human readable format...
9693
void print(raw_ostream &O) const;
9794
};

llvm/lib/Analysis/Interval.cpp

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -22,17 +22,6 @@ using namespace llvm;
2222
// Interval Implementation
2323
//===----------------------------------------------------------------------===//
2424

25-
// isLoop - Find out if there is a back edge in this interval...
26-
bool Interval::isLoop() const {
27-
// There is a loop in this interval iff one of the predecessors of the header
28-
// node lives in the interval.
29-
for (::pred_iterator I = ::pred_begin(HeaderNode), E = ::pred_end(HeaderNode);
30-
I != E; ++I)
31-
if (contains(*I))
32-
return true;
33-
return false;
34-
}
35-
3625
void Interval::print(raw_ostream &OS) const {
3726
OS << "-------------------------------------------------------------\n"
3827
<< "Interval Contents:\n";

0 commit comments

Comments
 (0)