Hi,

I'd like to add some pattern matching, for Turboshaft, to recognise add + 
shuffle patterns which correspond to a horizontal pairwise reduction. I've 
started doing this with wasm::SimdShuffle helpers and then during arm64 
instruction selection, but it feels like the pattern matching should be 
done in a generic place too... So, I was thinking about adding more four 
more kinds (I32x4, I64x4, F32x4 and F64x2 PairwiseReduction) 
to Simd128UnaryOp and then perform the combining in 
machine-optimization-reducer.

Does this sound reasonable enough..? Or is the overhead of plumbing this 
into the TS IR likely going to be significantly more complicated than 
backend pattern matching?

Thanks,
Sam 

-- 
-- 
v8-dev mailing list
v8-dev@googlegroups.com
http://groups.google.com/group/v8-dev
--- 
You received this message because you are subscribed to the Google Groups 
"v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to v8-dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/v8-dev/2a9c3fcd-ee78-4877-9587-2ccb3b0a59e6n%40googlegroups.com.

Reply via email to