Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1077)

Unified Diff: src/IceLiveness.cpp

Issue 656023002: Subzero: Register allocator performance improvements and simplifications. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/IceLiveness.h ('k') | src/IceOperand.h » ('j') | src/IceOperand.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/IceLiveness.cpp
diff --git a/src/IceLiveness.cpp b/src/IceLiveness.cpp
index 0960bd860d2ffdfd471a14d02db4fc38500972b6..79578a5200ee1c8294fd2b65a99effb6f0e4e9bf 100644
--- a/src/IceLiveness.cpp
+++ b/src/IceLiveness.cpp
@@ -35,8 +35,6 @@ void Liveness::init() {
VariablesMetadata *VMetadata = Func->getVMetadata();
Nodes.resize(NumNodes);
VarToLiveMap.resize(NumVars);
- if (Mode == Liveness_Intervals)
- LiveRanges.resize(NumVars);
// Count the number of globals, and the number of locals for each
// block.
@@ -98,16 +96,4 @@ Variable *Liveness::getVariable(SizeT LiveIndex, const CfgNode *Node) const {
return Nodes[NodeIndex].LiveToVarMap[LiveIndex - NumGlobals];
}
-void Liveness::addLiveRange(Variable *Var, InstNumberT Start, InstNumberT End,
- uint32_t WeightDelta) {
- LiveRange &LiveRange = LiveRanges[Var->getIndex()];
- assert(WeightDelta != RegWeight::Inf);
- LiveRange.addSegment(Start, End);
- LiveRange.addWeight(WeightDelta);
-}
-
-LiveRange &Liveness::getLiveRange(Variable *Var) {
- return LiveRanges[Var->getIndex()];
-}
-
} // end of namespace Ice
« no previous file with comments | « src/IceLiveness.h ('k') | src/IceOperand.h » ('j') | src/IceOperand.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698