Stream: git-wasmtime

Topic: wasmtime / PR #5905 x64: Add `shuffle` cases for `punpck{...


view this post on Zulip Wasmtime GitHub notifications bot (Mar 01 2023 at 20:15):

alexcrichton opened PR #5905 from shuffle-cases to main:

I noticed this difference between LLVM and Cranelift for something I was looking at recently, and while it's probably not all that common I figured I'd add it here since it should be somewhat useful nevertheless.

<!--

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 (Mar 01 2023 at 20:42):

jameysharp submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (Mar 01 2023 at 20:42):

jameysharp submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (Mar 01 2023 at 20:42):

jameysharp created PR review comment:

This comment should say "lower lanes", right?

view this post on Zulip Wasmtime GitHub notifications bot (Mar 01 2023 at 20:42):

jameysharp created PR review comment:

I think the hex literals in the filetest actually make the pattern more clear here. What would you think of replacing these decimal literals with hex?

Optionally, I suppose vec_mask_is could take a u128 instead of 16 u8s. I like the idea of not having a bazillion arguments to that function, but I'm not sure whether it's more clear than writing the bytes out separately. What do you think?

view this post on Zulip Wasmtime GitHub notifications bot (Mar 01 2023 at 20:56):

alexcrichton updated PR #5905 from shuffle-cases to main.

view this post on Zulip Wasmtime GitHub notifications bot (Mar 01 2023 at 20:56):

alexcrichton submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (Mar 01 2023 at 20:56):

alexcrichton created PR review comment:

Seems reasonable to me!

view this post on Zulip Wasmtime GitHub notifications bot (Mar 01 2023 at 20:57):

alexcrichton has enabled auto merge for PR #5905.

view this post on Zulip Wasmtime GitHub notifications bot (Mar 01 2023 at 21:10):

jameysharp submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (Mar 01 2023 at 21:10):

jameysharp created PR review comment:

And now that I'm looking at that revision, it occurs to me that if you make a u128_from_vec_mask extractor instead of vec_mask_is, you can put these two rules at the same priority because ISLE will be able to tell that their different masks don't overlap. That should generate better pattern-matching code. Not super important, but would be nice.

view this post on Zulip Wasmtime GitHub notifications bot (Mar 01 2023 at 21:20):

alexcrichton updated PR #5905 from shuffle-cases to main.

view this post on Zulip Wasmtime GitHub notifications bot (Mar 01 2023 at 21:20):

alexcrichton submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (Mar 01 2023 at 21:20):

alexcrichton created PR review comment:

Oh good point, and that removes the need for vec_mask_is since u128_from_immediate already exists too

view this post on Zulip Wasmtime GitHub notifications bot (Mar 01 2023 at 21:20):

alexcrichton has enabled auto merge for PR #5905.

view this post on Zulip Wasmtime GitHub notifications bot (Mar 01 2023 at 22:21):

alexcrichton merged PR #5905.


Last updated: Nov 22 2024 at 17:03 UTC