Remove unused 'isAlias' parameter.
authorLang Hames <lhames@gmail.com>
Fri, 10 Feb 2012 03:19:36 +0000 (03:19 +0000)
committerLang Hames <lhames@gmail.com>
Fri, 10 Feb 2012 03:19:36 +0000 (03:19 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@150224 91177308-0d34-0410-b5e6-96231b3b80d8

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

index 270f7e95fc21bf7abd61b33bbeb330911094f70e..693d66b7de27c03a11a9429eb8363965a1f9da70 100644 (file)
@@ -355,7 +355,7 @@ namespace llvm {
     /// handleLiveInRegister - Create interval for a livein register.
     void handleLiveInRegister(MachineBasicBlock* mbb,
                               SlotIndex MIIdx,
-                              LiveInterval &interval, bool isAlias = false);
+                              LiveInterval &interval);
 
     /// getReMatImplicitUse - If the remat definition MI has one (for now, we
     /// only allow one) virtual register operand, then its uses are implicitly
index b305fc2ab1769a738db10c3a07ceeb12b2f15bc4..446dc652b904f8ede1b313255f16a6b3fdf63b1e 100644 (file)
@@ -455,7 +455,7 @@ void LiveIntervals::handleRegisterDef(MachineBasicBlock *MBB,
 
 void LiveIntervals::handleLiveInRegister(MachineBasicBlock *MBB,
                                          SlotIndex MIIdx,
-                                         LiveInterval &interval, bool isAlias) {
+                                         LiveInterval &interval) {
   DEBUG(dbgs() << "\t\tlivein register: " << PrintReg(interval.reg, tri_));
 
   // Look for kills, if it reaches a def before it's killed, then it shouldn't
@@ -505,13 +505,8 @@ void LiveIntervals::handleLiveInRegister(MachineBasicBlock *MBB,
 
   // Live-in register might not be used at all.
   if (!SeenDefUse) {
-    if (isAlias) {
-      DEBUG(dbgs() << " dead");
-      end = MIIdx.getDeadSlot();
-    } else {
-      DEBUG(dbgs() << " live through");
-      end = getMBBEndIdx(MBB);
-    }
+    DEBUG(dbgs() << " live through");
+    end = getMBBEndIdx(MBB);
   }
 
   SlotIndex defIdx = getMBBStartIdx(MBB);