Stream: git-wasmtime

Topic: wasmtime / PR #5191 Move bitselect->vselect optimization ...


view this post on Zulip Wasmtime GitHub notifications bot (Nov 03 2022 at 19:29):

uweigand opened PR #5191 from bitselect-vselect-opt to main:

The simplifier was performing an optimization to replace bitselect with vselect if the all bytes of the condition mask could be shown to be all ones or all zeros.

This optimization only ever made any difference in codegen on the x64 target. Therefore, move this optimization to the x64 back-end and perform it in ISLE instead. Resulting codegen should be unchanged, with slightly improved compile time.

This also eliminates a few endian-dependent bitcast operations.

CC @cfallin

<!--

Please ensure that the following steps are all taken care of before submitting
the PR.

Please ensure all communication adheres to the code of conduct.
-->

view this post on Zulip Wasmtime GitHub notifications bot (Nov 03 2022 at 20:09):

cfallin submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (Nov 03 2022 at 20:09):

cfallin has enabled auto merge for PR #5191.

view this post on Zulip Wasmtime GitHub notifications bot (Nov 03 2022 at 20:17):

cfallin merged PR #5191.


Last updated: Dec 23 2024 at 12:05 UTC