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

Unified Diff: src/IceCfg.cpp

Issue 1351433002: Subzero: Validate phi instructions after CFG construction. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Add the test provenance 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 | « no previous file | src/IceCfgNode.h » ('j') | no next file with comments »
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 57f216ff39d582b903f22ecf87e98e2500c70763..ed60abb74088d09d96bbac3f4a97acc66be954c4 100644
--- a/src/IceCfg.cpp
+++ b/src/IceCfg.cpp
@@ -232,6 +232,10 @@ void Cfg::computeInOutEdges() {
}
}
Nodes.resize(Dest);
+
+ TimerMarker T(TimerStack::TT_phiValidation, this);
+ for (CfgNode *Node : Nodes)
+ Node->validatePhis();
}
void Cfg::renumberInstructions() {
« no previous file with comments | « no previous file | src/IceCfgNode.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698