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

Unified Diff: src/IceCfg.cpp

Issue 2172313002: Subzero : Live Range Splitting after initial Register Allocation (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Cleanup Created 4 years, 5 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/IceCfg.h ('k') | src/IceCfgNode.cpp » ('j') | src/IceCfgNode.cpp » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/IceCfg.cpp
diff --git a/src/IceCfg.cpp b/src/IceCfg.cpp
index 23c363fa7791938a5a05a0edfc6adaf72167f48b..dd11ebbf8dedc861bb4ce3c5406253517749c5cd 100644
--- a/src/IceCfg.cpp
+++ b/src/IceCfg.cpp
@@ -1706,6 +1706,12 @@ size_t Cfg::getLivenessMemoryMB() const {
return Live->getAllocator()->getTotalMemory() / _1MB;
}
+void Cfg::addVariable(Variable *Var) {
+ assert(Var);
+ Var->setIndex(getVariables().size());
+ Variables.push_back(Var);
+}
+
// Dumps the IR with an optional introductory message.
void Cfg::dump(const char *Message) {
if (!BuildDefs::dump())
« no previous file with comments | « src/IceCfg.h ('k') | src/IceCfgNode.cpp » ('j') | src/IceCfgNode.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698