Commentary

This commit is contained in:
Wilson Snyder
2023-05-27 09:43:23 -04:00
parent 7f12ad9d91
commit f407d442d4
6 changed files with 22 additions and 20 deletions
+4 -4
View File
@@ -57,14 +57,14 @@ private:
AstUser4Allocator<AstCFunc, std::unordered_multimap<const AstVarScope*, AstVarRef*>>
m_references;
// STATE - for current visit position (use VL_RESTORER)
AstCFunc* m_cfuncp = nullptr; // Current active function
uint32_t m_nodeDepth = 0; // Node depth under m_cfuncp
// STATE - across all visitors
std::vector<AstVarScope*> m_varScopeps; // List of variables to consider for localization
VDouble0 m_statLocVars; // Statistic tracking
// STATE - for current visit position (use VL_RESTORER)
AstCFunc* m_cfuncp = nullptr; // Current active function
uint32_t m_nodeDepth = 0; // Node depth under m_cfuncp
// METHODS
bool isOptimizable(AstVarScope* nodep) {
return !nodep->user1() || // Not marked as not optimizable, or ...