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

Unified Diff: src/IceCfg.h

Issue 1318553003: Compute the loop nest depth of each CfgNode and weight Variables by it. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Created 5 years, 3 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 | « Makefile.standalone ('k') | src/IceCfg.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/IceCfg.h
diff --git a/src/IceCfg.h b/src/IceCfg.h
index e6c5a4a43c7708f9fb42f2b028312c2a8f1e8800..3c8972df6ad80f58b1b22035a38636aff4a2fe6f 100644
--- a/src/IceCfg.h
+++ b/src/IceCfg.h
@@ -86,7 +86,9 @@ public:
/// @{
void setEntryNode(CfgNode *EntryNode) { Entry = EntryNode; }
CfgNode *getEntryNode() const { return Entry; }
- /// Create a node and append it to the end of the linearized list.
+ /// Create a node and append it to the end of the linearized list. The loop
+ /// nest depth of the new node may not be valid if it is created after
+ /// computeLoopNestDepth.
CfgNode *makeNode();
SizeT getNumNodes() const { return Nodes.size(); }
const NodeList &getNodes() const { return Nodes; }
@@ -189,6 +191,7 @@ public:
void doNopInsertion();
void genCode();
void genFrame();
+ void computeLoopNestDepth();
void livenessLightweight();
void liveness(LivenessMode Mode);
bool validateLiveness() const;
« no previous file with comments | « Makefile.standalone ('k') | src/IceCfg.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698