Commit f041a9ea authored by Tanya Lattner's avatar Tanya Lattner
Browse files

Merge from mainline. Complete 64076 merge from mainline.

llvm-svn: 64861
parent 811b9fd3
Loading
Loading
Loading
Loading
+11 −0
Original line number Diff line number Diff line
@@ -272,6 +272,17 @@ namespace llvm {
      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
    /// LiveRanges with the V1 value number with the V2 value number.  This can