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

Unified Diff: src/IceCfgNode.cpp

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: calculate -> compute (consistency) 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
Index: src/IceCfgNode.cpp
diff --git a/src/IceCfgNode.cpp b/src/IceCfgNode.cpp
index f0fae92af6de29990c3fd0fb42e16d76460dc83b..191adea95b679e2976d1c14ee46d219016e516ac 100644
--- a/src/IceCfgNode.cpp
+++ b/src/IceCfgNode.cpp
@@ -1182,6 +1182,9 @@ void CfgNode::dump(Cfg *Func) const {
if (Func->isVerbose(IceV_Instructions)) {
Str << getName() << ":\n";
}
+ // Dump the loop nest depth
+ if (Func->isVerbose(IceV_Loop))
+ Str << " // LoopNestDepth = " << LoopNestDepth << "\n";
Jim Stichnoth 2015/09/01 22:17:37 I suggest adding the node label - getName() - to t
ascull 2015/09/03 19:52:37 Done.
// Dump list of predecessor nodes.
if (Func->isVerbose(IceV_Preds) && !InEdges.empty()) {
Str << " // preds = ";

Powered by Google App Engine
This is Rietveld 408576698