[Analysis/Interval] Remove isLoop (NFC)
authorKazu Hirata <kazu@google.com>
Sat, 12 Dec 2020 18:09:35 +0000 (10:09 -0800)
committerKazu Hirata <kazu@google.com>
Sat, 12 Dec 2020 18:09:35 +0000 (10:09 -0800)
The last use of isLoop was removed on Apr 29, 2002 in commit
09bbb5c015c6e40b3d45da057f955ddb7c8f8485 as part of an effort to
remove "old induction varaible cannonicalization pass built on top of
interval analysis".

llvm/include/llvm/Analysis/Interval.h
llvm/lib/Analysis/Interval.cpp

index 5c9a453..9afe659 100644 (file)
@@ -89,9 +89,6 @@ public:
     return HeaderNode == I.HeaderNode;
   }
 
-  /// isLoop - Find out if there is a back edge in this interval...
-  bool isLoop() const;
-
   /// print - Show contents in human readable format...
   void print(raw_ostream &O) const;
 };
index 07d6e27..e228ec4 100644 (file)
@@ -22,17 +22,6 @@ using namespace llvm;
 // Interval Implementation
 //===----------------------------------------------------------------------===//
 
-// isLoop - Find out if there is a back edge in this interval...
-bool Interval::isLoop() const {
-  // There is a loop in this interval iff one of the predecessors of the header
-  // node lives in the interval.
-  for (::pred_iterator I = ::pred_begin(HeaderNode), E = ::pred_end(HeaderNode);
-       I != E; ++I)
-    if (contains(*I))
-      return true;
-  return false;
-}
-
 void Interval::print(raw_ostream &OS) const {
   OS << "-------------------------------------------------------------\n"
        << "Interval Contents:\n";