a number of low-level tweaks from code review

This commit is contained in:
Vern Paxson 2021-08-19 10:15:44 -07:00
parent c10737d168
commit b6daf14868
12 changed files with 79 additions and 80 deletions

View file

@ -27,9 +27,7 @@ void GenIDDefs::TraverseFunction(const Func* f, ScopePtr scope, StmtPtr body)
// Establish the outermost barrior and associated set of
// identifiers.
barrier_blocks.push_back(0);
std::unordered_set<const ID*> empty_IDs;
modified_IDs.push_back(empty_IDs);
modified_IDs.push_back({});
for ( const auto& g : pf->Globals() )
{
@ -442,9 +440,7 @@ void GenIDDefs::StartConfluenceBlock(const Stmt* s)
barrier_blocks.push_back(confluence_blocks.size());
confluence_blocks.push_back(s);
std::unordered_set<const ID*> empty_IDs;
modified_IDs.push_back(empty_IDs);
modified_IDs.push_back({});
}
void GenIDDefs::EndConfluenceBlock(bool no_orig)