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

Unified Diff: src/IceLiveness.cpp

Issue 1312433004: Weight variables by their number of uses for register allocation. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Tidy up lose ends. Created 5 years, 4 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/IceInst.cpp ('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 35e12b7b20e26de689a1be5929ce3619a4a8b9b0..15877b25b7f4c90c6d18d19e732dfcf0a0a1bbf8 100644
--- a/src/IceLiveness.cpp
+++ b/src/IceLiveness.cpp
@@ -102,7 +102,7 @@ void Liveness::initInternal(NodeList::const_iterator FirstNode,
Variable *Var = *I;
SizeT VarIndex = Var->getIndex();
if (Var->getIgnoreLiveness() ||
- (!IsFullInit && !Var->hasReg() && !Var->getWeight().isInf()))
+ (!IsFullInit && !Var->hasReg() && !Var->mustHaveReg()))
RangeMask[VarIndex] = false;
}
« no previous file with comments | « src/IceInst.cpp ('k') | src/IceOperand.h » ('j') | src/IceOperand.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698