Remove dead code.
authorJakob Stoklund Olesen <stoklund@2pi.dk>
Wed, 8 Sep 2010 18:50:24 +0000 (18:50 +0000)
committerJakob Stoklund Olesen <stoklund@2pi.dk>
Wed, 8 Sep 2010 18:50:24 +0000 (18:50 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@113386 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/CodeGen/LiveInterval.h
lib/CodeGen/LiveInterval.cpp

index a8d196ea0590036aca77df9d8aec6218ffdb03ff..3b5844f03aa5d07bc08a32138cafd55699e2f35c 100644 (file)
@@ -447,10 +447,6 @@ namespace llvm {
     /// index (register interval) or defined
     VNInfo *findDefinedVNInfoForRegInt(SlotIndex Idx) const;
 
-    /// findDefinedVNInfo - Find the VNInfo that's defined by the specified
-    /// register (stack inteval only).
-    VNInfo *findDefinedVNInfoForStackInt(unsigned Reg) const;
-
 
     /// overlaps - Return true if the intersection of the two live intervals is
     /// not empty.
index 21b0bc001969e853b74989b3a5098309e505fb48..03d8e95798d99e28a2bb1b480eb554174d6cdcae 100644 (file)
@@ -443,17 +443,6 @@ VNInfo *LiveInterval::findDefinedVNInfoForRegInt(SlotIndex Idx) const {
   return 0;
 }
 
-/// findDefinedVNInfo - Find the VNInfo defined by the specified
-/// register (stack inteval).
-VNInfo *LiveInterval::findDefinedVNInfoForStackInt(unsigned reg) const {
-  for (LiveInterval::const_vni_iterator i = vni_begin(), e = vni_end();
-       i != e; ++i) {
-    if ((*i)->getReg() == reg)
-      return *i;
-  }
-  return 0;
-}
-
 /// join - Join two live intervals (this, and other) together.  This applies
 /// mappings to the value numbers in the LHS/RHS intervals as specified.  If
 /// the intervals are not joinable, this aborts.