From d211d8e4312fdec19bc0e27559700ac0b2591e5c Mon Sep 17 00:00:00 2001 From: Lang Hames Date: Fri, 10 Feb 2012 03:19:36 +0000 Subject: [PATCH] Remove unused 'isAlias' parameter. llvm-svn: 150224 --- include/llvm/CodeGen/LiveIntervalAnalysis.h | 2 +- lib/CodeGen/LiveIntervalAnalysis.cpp | 11 +++-------- 2 files changed, 4 insertions(+), 9 deletions(-) diff --git a/include/llvm/CodeGen/LiveIntervalAnalysis.h b/include/llvm/CodeGen/LiveIntervalAnalysis.h index 270f7e95fc2..693d66b7de2 100644 --- a/include/llvm/CodeGen/LiveIntervalAnalysis.h +++ b/include/llvm/CodeGen/LiveIntervalAnalysis.h @@ -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 diff --git a/lib/CodeGen/LiveIntervalAnalysis.cpp b/lib/CodeGen/LiveIntervalAnalysis.cpp index b305fc2ab17..446dc652b90 100644 --- a/lib/CodeGen/LiveIntervalAnalysis.cpp +++ b/lib/CodeGen/LiveIntervalAnalysis.cpp @@ -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);