aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/LiveVariables.cpp
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2009-05-26 06:25:46 +0000
committerEvan Cheng <evan.cheng@apple.com>2009-05-26 06:25:46 +0000
commit7061ee968ce148a76f6211cbc54854d05657969e (patch)
tree995ce3f531bcfef1e398ad20b3740c9ec6a6fc1f /llvm/lib/CodeGen/LiveVariables.cpp
parent00a2759ca98e53daf2bad21ead8b4209f2858246 (diff)
downloadllvm-7061ee968ce148a76f6211cbc54854d05657969e.zip
llvm-7061ee968ce148a76f6211cbc54854d05657969e.tar.gz
llvm-7061ee968ce148a76f6211cbc54854d05657969e.tar.bz2
Eliminate VarInfo::UsedBlocks.
llvm-svn: 72411
Diffstat (limited to 'llvm/lib/CodeGen/LiveVariables.cpp')
-rw-r--r--llvm/lib/CodeGen/LiveVariables.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/llvm/lib/CodeGen/LiveVariables.cpp b/llvm/lib/CodeGen/LiveVariables.cpp
index a7bdbd9..9453aa4 100644
--- a/llvm/lib/CodeGen/LiveVariables.cpp
+++ b/llvm/lib/CodeGen/LiveVariables.cpp
@@ -54,9 +54,6 @@ void LiveVariables::VarInfo::dump() const {
cerr << " Alive in blocks: ";
for (int i = AliveBlocks.find_first(); i != -1; i = AliveBlocks.find_next(i))
cerr << i << ", ";
- cerr << " Used in blocks: ";
- for (int i = UsedBlocks.find_first(); i != -1; i = UsedBlocks.find_next(i))
- cerr << i << ", ";
cerr << "\n Killed by:";
if (Kills.empty())
cerr << " No instructions.\n";
@@ -80,7 +77,6 @@ LiveVariables::VarInfo &LiveVariables::getVarInfo(unsigned RegIdx) {
}
VarInfo &VI = VirtRegInfo[RegIdx];
VI.AliveBlocks.resize(MF->getNumBlockIDs());
- VI.UsedBlocks.resize(MF->getNumBlockIDs());
return VI;
}
@@ -131,7 +127,6 @@ void LiveVariables::HandleVirtRegUse(unsigned reg, MachineBasicBlock *MBB,
unsigned BBNum = MBB->getNumber();
VarInfo& VRInfo = getVarInfo(reg);
- VRInfo.UsedBlocks[BBNum] = true;
VRInfo.NumUses++;
// Check to see if this basic block is already a kill block.