diff options
author | Thomas Lively <tlively@google.com> | 2023-09-14 18:45:13 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-14 18:45:13 -0700 |
commit | 16a59938563c93d8459bf36679c83497aeba7cc7 (patch) | |
tree | 435659a8cfb409992aeab4cf67623f4c15b14556 /test/exception-handling.wast.fromBinary | |
parent | b2e92275581f0f57f3f8cf82a459e9a28456a383 (diff) | |
download | binaryen-16a59938563c93d8459bf36679c83497aeba7cc7.tar.gz binaryen-16a59938563c93d8459bf36679c83497aeba7cc7.tar.bz2 binaryen-16a59938563c93d8459bf36679c83497aeba7cc7.zip |
Revert "Optimize tuple.extract of gets in BinaryInstWriter (#5941)" (#5945)
This reverts commit 56ce1eaba7f500b572bcfe06e3248372e9672322. The binary writer
optimization is not always correct when stack IR optimizations have run. Revert
the change until we can fix it.
Diffstat (limited to 'test/exception-handling.wast.fromBinary')
-rw-r--r-- | test/exception-handling.wast.fromBinary | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/test/exception-handling.wast.fromBinary b/test/exception-handling.wast.fromBinary index 44bd2e5c3..d5cc2c179 100644 --- a/test/exception-handling.wast.fromBinary +++ b/test/exception-handling.wast.fromBinary @@ -20,6 +20,7 @@ (local $1 i64) (local $2 (i32 i64)) (local $3 i32) + (local $4 i32) (try $label$3 (do (throw $e-i32 @@ -59,7 +60,15 @@ ) ) (drop - (local.get $x) + (block (result i32) + (local.set $4 + (local.get $x) + ) + (drop + (local.get $1) + ) + (local.get $4) + ) ) ) ) |