[llvm-commits] [llvm] r64861 - /llvm/branches/release_25/include/llvm/CodeGen/LiveInterval.h

Tanya Lattner tonic at nondot.org
Tue Feb 17 16:23:25 PST 2009


Author: tbrethou
Date: Tue Feb 17 18:23:25 2009
New Revision: 64861

URL: http://llvm.org/viewvc/llvm-project?rev=64861&view=rev
Log:
Merge from mainline. Complete 64076 merge from mainline.

Modified:
    llvm/branches/release_25/include/llvm/CodeGen/LiveInterval.h

Modified: llvm/branches/release_25/include/llvm/CodeGen/LiveInterval.h
URL: http://llvm.org/viewvc/llvm-project/llvm/branches/release_25/include/llvm/CodeGen/LiveInterval.h?rev=64861&r1=64860&r2=64861&view=diff

==============================================================================
--- llvm/branches/release_25/include/llvm/CodeGen/LiveInterval.h (original)
+++ llvm/branches/release_25/include/llvm/CodeGen/LiveInterval.h Tue Feb 17 18:23:25 2009
@@ -271,6 +271,17 @@
         I = std::lower_bound(kills.begin(), kills.end(), KillIdx);
       return I != kills.end() && *I == KillIdx;
     }
+
+    /// isOnlyLROfValNo - Return true if the specified live range is the only
+    /// one defined by the its val#.
+    bool isOnlyLROfValNo( const LiveRange *LR) {
+      for (const_iterator I = begin(), E = end(); I != E; ++I) {
+        const LiveRange *Tmp = I;
+        if (Tmp != LR && Tmp->valno == LR->valno)
+          return false;
+      }
+      return true;
+    }
     
     /// MergeValueNumberInto - This method is called when two value nubmers
     /// are found to be equivalent.  This eliminates V1, replacing all





More information about the llvm-commits mailing list