diff options
author | Alon Zakai <azakai@google.com> | 2023-07-21 13:12:27 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-21 13:12:27 -0700 |
commit | 84af3482c31bb33595cbb72f30070bc27eab721c (patch) | |
tree | 34f71b02d0ab5cc781948668a9cac51bcbb193ef /src | |
parent | 794a7ee41068ffe450bf904de504f2cad36d1f21 (diff) | |
download | binaryen-84af3482c31bb33595cbb72f30070bc27eab721c.tar.gz binaryen-84af3482c31bb33595cbb72f30070bc27eab721c.tar.bz2 binaryen-84af3482c31bb33595cbb72f30070bc27eab721c.zip |
SimplifyLocals: Refinalize after removing redundant tees (#5830)
Diffstat (limited to 'src')
-rw-r--r-- | src/passes/SimplifyLocals.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/passes/SimplifyLocals.cpp b/src/passes/SimplifyLocals.cpp index 07527ee14..a042ba573 100644 --- a/src/passes/SimplifyLocals.cpp +++ b/src/passes/SimplifyLocals.cpp @@ -1024,6 +1024,9 @@ struct SimplifyLocals // This is an unnecessary copy! if (removeEquivalentSets) { if (curr->isTee()) { + if (curr->value->type != curr->type) { + refinalize = true; + } this->replaceCurrent(curr->value); } else { this->replaceCurrent(Builder(*module).makeDrop(curr->value)); |