diff options
author | Alon Zakai <azakai@google.com> | 2021-09-30 14:51:08 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-30 14:51:08 -0700 |
commit | 58879a6c6f623156d53f72a4ca935df81143f49e (patch) | |
tree | 4c1abca54213c69b78806ced568a0146c4a0c157 /src/tools/wasm-ctor-eval.cpp | |
parent | 71ae6342c418c34d8409c49fd0710ec6fd767ac8 (diff) | |
download | binaryen-58879a6c6f623156d53f72a4ca935df81143f49e.tar.gz binaryen-58879a6c6f623156d53f72a4ca935df81143f49e.tar.bz2 binaryen-58879a6c6f623156d53f72a4ca935df81143f49e.zip |
[Wasm GC] Optimize static (rtt-free) operations (#4186)
Now that they are all implemented, we can optimize them. This removes the
big if that ignored static operations, and implements things for them.
In general this matches the existing rtt-using case, but there are a few things
we can do better, which this does:
* A cast of a subtype to a type always succeeds.
* A test of a subtype to a type is always 1 (if non-nullable).
* Repeated static casts can leave just the most demanding of them.
Diffstat (limited to 'src/tools/wasm-ctor-eval.cpp')
0 files changed, 0 insertions, 0 deletions