From: Jakob Stoklund Olesen Date: Wed, 14 Aug 2013 17:28:52 +0000 (+0000) Subject: Remove unnecessary parameter to RenumberValues. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=1c6d387dc90fba589f8effb17c72a39f966f87df;p=oota-llvm.git Remove unnecessary parameter to RenumberValues. Patch by Matthias Braun! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@188393 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/CodeGen/LiveInterval.h b/include/llvm/CodeGen/LiveInterval.h index f42bf8c08b1..6361c3570cd 100644 --- a/include/llvm/CodeGen/LiveInterval.h +++ b/include/llvm/CodeGen/LiveInterval.h @@ -240,7 +240,7 @@ namespace llvm { /// RenumberValues - Renumber all values in order of appearance and remove /// unused values. - void RenumberValues(LiveIntervals &lis); + void RenumberValues(); /// MergeValueNumberInto - This method is called when two value nubmers /// are found to be equivalent. This eliminates V1, replacing all diff --git a/lib/CodeGen/LiveInterval.cpp b/lib/CodeGen/LiveInterval.cpp index 6be6bf3688a..3f88236a9ad 100644 --- a/lib/CodeGen/LiveInterval.cpp +++ b/lib/CodeGen/LiveInterval.cpp @@ -202,7 +202,7 @@ void LiveInterval::markValNoForDeletion(VNInfo *ValNo) { /// RenumberValues - Renumber all values in order of appearance and delete the /// remaining unused values. -void LiveInterval::RenumberValues(LiveIntervals &lis) { +void LiveInterval::RenumberValues() { SmallPtrSet Seen; valnos.clear(); for (const_iterator I = begin(), E = end(); I != E; ++I) { diff --git a/lib/CodeGen/LiveRangeEdit.cpp b/lib/CodeGen/LiveRangeEdit.cpp index 792ef5405e2..b35e25b8618 100644 --- a/lib/CodeGen/LiveRangeEdit.cpp +++ b/lib/CodeGen/LiveRangeEdit.cpp @@ -360,7 +360,7 @@ void LiveRangeEdit::eliminateDeadDefs(SmallVectorImpl &Dead, if (BeingSpilled) continue; // LI may have been separated, create new intervals. - LI->RenumberValues(LIS); + LI->RenumberValues(); ConnectedVNInfoEqClasses ConEQ(LIS); unsigned NumComp = ConEQ.Classify(LI); if (NumComp <= 1) diff --git a/lib/CodeGen/SplitKit.cpp b/lib/CodeGen/SplitKit.cpp index e717fac2998..32c65a7d83b 100644 --- a/lib/CodeGen/SplitKit.cpp +++ b/lib/CodeGen/SplitKit.cpp @@ -1092,7 +1092,7 @@ void SplitEditor::finish(SmallVectorImpl *LRMap) { // Get rid of unused values and set phi-kill flags. for (LiveRangeEdit::iterator I = Edit->begin(), E = Edit->end(); I != E; ++I) - (*I)->RenumberValues(LIS); + (*I)->RenumberValues(); // Provide a reverse mapping from original indices to Edit ranges. if (LRMap) {