summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2019-02-06 13:09:29 -0800
committerGitHub <noreply@github.com>2019-02-06 13:09:29 -0800
commite2e0c2751f3fe4b3cc7493d2ea3274d821e62b8b (patch)
tree2d0a4344bd59d0ab54962eb99c4ee0995a62edcd /src
parent4e8c339a5ab327aa896a761fc33fd9ae4be57718 (diff)
downloadbinaryen-e2e0c2751f3fe4b3cc7493d2ea3274d821e62b8b.tar.gz
binaryen-e2e0c2751f3fe4b3cc7493d2ea3274d821e62b8b.tar.bz2
binaryen-e2e0c2751f3fe4b3cc7493d2ea3274d821e62b8b.zip
fix breakage (#1901)
We landed two PRs that had a logic conflict but not a source conflict (bulk memory added ops, comparison optimization removed the need for PUSH ops that bulk memory added).
Diffstat (limited to 'src')
-rw-r--r--src/ir/ExpressionAnalyzer.cpp10
1 files changed, 0 insertions, 10 deletions
diff --git a/src/ir/ExpressionAnalyzer.cpp b/src/ir/ExpressionAnalyzer.cpp
index 2869f38a8..e2345d303 100644
--- a/src/ir/ExpressionAnalyzer.cpp
+++ b/src/ir/ExpressionAnalyzer.cpp
@@ -235,9 +235,6 @@ bool ExpressionAnalyzer::flexibleEqual(Expression* left, Expression* right, Expr
}
case Expression::Id::MemoryInitId: {
CHECK(MemoryInit, segment);
- PUSH(MemoryInit, dest);
- PUSH(MemoryInit, offset);
- PUSH(MemoryInit, size);
break;
}
case Expression::Id::DataDropId: {
@@ -245,15 +242,9 @@ bool ExpressionAnalyzer::flexibleEqual(Expression* left, Expression* right, Expr
break;
}
case Expression::Id::MemoryCopyId: {
- PUSH(MemoryCopy, dest);
- PUSH(MemoryCopy, source);
- PUSH(MemoryCopy, size);
break;
}
case Expression::Id::MemoryFillId: {
- PUSH(MemoryFill, dest);
- PUSH(MemoryFill, value);
- PUSH(MemoryFill, size);
break;
}
case Expression::Id::ConstId: {
@@ -301,7 +292,6 @@ bool ExpressionAnalyzer::flexibleEqual(Expression* left, Expression* right, Expr
rightStack.push_back(child);
}
#undef CHECK
- #undef PUSH
}
if (leftStack.size() > 0 || rightStack.size() > 0) return false;
return true;