summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2007-08-31 08:26:44 +0000
committerEvan Cheng <evan.cheng@apple.com>2007-08-31 08:26:44 +0000
commit91becf4ffa72e0a48b6787fef0dee596eba4a16b (patch)
treead19a1541dc8be8ac7bdab42f2293d510a9e90c4 /llvm/lib/CodeGen
parent262596e76a1b727f8014db3ffcfeae66100a1a71 (diff)
downloadbcm5719-llvm-91becf4ffa72e0a48b6787fef0dee596eba4a16b.tar.gz
bcm5719-llvm-91becf4ffa72e0a48b6787fef0dee596eba4a16b.zip
Remove an unnecessary element, saving 4 bytes per LiveInterval.
llvm-svn: 41641
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r--llvm/lib/CodeGen/LiveInterval.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/LiveInterval.cpp b/llvm/lib/CodeGen/LiveInterval.cpp
index b10a7218209..c9e98bc42a6 100644
--- a/llvm/lib/CodeGen/LiveInterval.cpp
+++ b/llvm/lib/CodeGen/LiveInterval.cpp
@@ -349,13 +349,11 @@ void LiveInterval::join(LiveInterval &Other, int *LHSValNoAssignments,
// Update val# info. Renumber them and make sure they all belong to this
// LiveInterval now.
valnos.clear();
- numvals = 0;
for (unsigned i = 0, e = NewVNInfo.size(); i != e; ++i) {
VNInfo *VNI = NewVNInfo[i];
VNI->parent = this;
VNI->id = i; // Renumber val#.
valnos.push_back(VNI);
- ++numvals;
}
// Okay, now insert the RHS live ranges into the LHS.
@@ -484,7 +482,6 @@ void LiveInterval::MergeValueNumberInto(VNInfo *V1, VNInfo *V2) {
VNInfo *VNI = valnos.back();
valnos.pop_back();
delete VNI;
- --numvals;
} while (valnos.back()->def == ~1U);
} else {
V1->def = ~1U;
OpenPOWER on IntegriCloud