[llvm] [WebAssembly] Add pattern for relaxed laneselect (from bitselect simd) (PR #163807)
Jasmine Tang via llvm-commits
llvm-commits at lists.llvm.org
Mon Nov 10 10:49:00 PST 2025
================
@@ -1662,6 +1662,13 @@ multiclass SIMDLANESELECT<Vec vec, bits<32> op> {
(vec.vt V128:$a), (vec.vt V128:$b), (vec.vt V128:$c)))],
vec.prefix#".relaxed_laneselect\t$dst, $a, $b, $c",
vec.prefix#".relaxed_laneselect", op>;
+
+ let AddedComplexity = 1 in {
+ def : Pat<(vec.vt (int_wasm_bitselect
----------------
badumbatish wrote:
@dschuff @sparker-arm hi there, i'm planning on doing the same thing for swizzle, which also requires me to go from the normal swizzle to the relaxed version, I'm wondering if the current approach of the PR works after clarifying w/ the prior comment?
https://github.com/llvm/llvm-project/pull/163807
More information about the llvm-commits
mailing list