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

Unified Diff: src/IceCfgNode.h

Issue 652633002: Subzero: Improve performance of liveness analysis and live range construction. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Remove TODO Created 6 years, 2 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.cpp ('k') | src/IceCfgNode.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/IceCfgNode.h
diff --git a/src/IceCfgNode.h b/src/IceCfgNode.h
index cc97ae412955b98be3167f6ca84490ba91ba641a..e5661cc617454538e04943e7229a37dca47829ca 100644
--- a/src/IceCfgNode.h
+++ b/src/IceCfgNode.h
@@ -51,6 +51,11 @@ public:
InstList &getInsts() { return Insts; }
void appendInst(Inst *Inst);
void renumberInstructions();
+ // Rough and generally conservative estimate of the number of
+ // instructions in the block. It is updated when an instruction is
+ // added, but not when deleted. It is recomputed during
+ // renumberInstructions().
+ InstNumberT getInstCountEstimate() const { return InstCountEstimate; }
// Add a predecessor edge to the InEdges list for each of this
// node's successors.
@@ -77,6 +82,7 @@ private:
const SizeT Number; // label index
IceString Name; // for dumping only
bool HasReturn; // does this block need an epilog?
+ InstNumberT InstCountEstimate; // rough instruction count estimate
NodeList InEdges; // in no particular order
NodeList OutEdges; // in no particular order
PhiList Phis; // unordered set of phi instructions
« no previous file with comments | « src/IceCfg.cpp ('k') | src/IceCfgNode.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698