diff options
author | Alon Zakai <alonzakai@gmail.com> | 2016-06-11 19:21:48 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-06-11 19:21:48 -0700 |
commit | 24fa19071d309c59eee5c2bd966139eaab45b5ba (patch) | |
tree | 97ce18d123b666e4650728d1538cb990c3e877a3 /src/ast_utils.h | |
parent | 996262dcdb88388717aab72bd8f37841aaabb24c (diff) | |
parent | 9a4007e0ba7a77e1eed742278cd24a3914daae30 (diff) | |
download | binaryen-24fa19071d309c59eee5c2bd966139eaab45b5ba.tar.gz binaryen-24fa19071d309c59eee5c2bd966139eaab45b5ba.tar.bz2 binaryen-24fa19071d309c59eee5c2bd966139eaab45b5ba.zip |
Merge pull request #583 from WebAssembly/br-more
Fix and improve br optimizations
Diffstat (limited to 'src/ast_utils.h')
-rw-r--r-- | src/ast_utils.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/ast_utils.h b/src/ast_utils.h index 0c2c318e2..8952114bc 100644 --- a/src/ast_utils.h +++ b/src/ast_utils.h @@ -105,7 +105,6 @@ struct EffectAnalyzer : public PostWalker<EffectAnalyzer, Visitor<EffectAnalyzer || (accessesMemory() && (other.writesMemory || other.calls))) { return true; } - assert(localsWritten.size() + localsRead.size() <= 1); // the code below is fast on that case, of one element vs many for (auto local : localsWritten) { if (other.localsWritten.count(local) || other.localsRead.count(local)) { return true; |