Internals: Cleanup more VL_RESTORER. No functional change intended.

This commit is contained in:
Wilson Snyder
2023-05-21 14:06:39 -04:00
parent 950e29d56e
commit 140994d2c4
3 changed files with 22 additions and 24 deletions
+4 -2
View File
@@ -57,11 +57,13 @@ private:
AstUser4Allocator<AstCFunc, std::unordered_multimap<const AstVarScope*, AstVarRef*>>
m_references;
// STATE
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
// STATE - across all visitors
std::vector<AstVarScope*> m_varScopeps; // List of variables to consider for localization
VDouble0 m_statLocVars; // Statistic tracking
// METHODS
bool isOptimizable(AstVarScope* nodep) {