File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change 1919
2020#include " ir/intrinsics.h"
2121#include " pass.h"
22+ #include " support/small_set.h"
2223#include " wasm-traversal.h"
2324
2425namespace wasm {
@@ -91,10 +92,10 @@ class EffectAnalyzer {
9192 // of control flow proceeding normally).
9293 bool branchesOut = false ;
9394 bool calls = false ;
94- std::set <Index> localsRead;
95- std::set <Index> localsWritten;
96- std::set <Name> mutableGlobalsRead;
97- std::set <Name> globalsWritten;
95+ SmallSet <Index, 1 > localsRead;
96+ SmallSet <Index, 1 > localsWritten;
97+ SmallSet <Name, 1 > mutableGlobalsRead;
98+ SmallSet <Name, 1 > globalsWritten;
9899 bool readsMemory = false ;
99100 bool writesMemory = false ;
100101 bool readsTable = false ;
@@ -343,8 +344,8 @@ class EffectAnalyzer {
343344 return hasAnything ();
344345 }
345346
346- std::set <Name> breakTargets;
347- std::set <Name> delegateTargets;
347+ SmallSet <Name, 1 > breakTargets;
348+ SmallSet <Name, 1 > delegateTargets;
348349
349350private:
350351 struct InternalAnalyzer
You can’t perform that action at this time.
0 commit comments