Re: [PATCH] MATCH: Sink convert for vec_cond

2023-08-18 Thread Richard Biener via Gcc-patches
On Thu, Aug 17, 2023 at 3:38 AM Andrew Pinski via Gcc-patches wrote: > > Convert be sinked into a vec_cond if both sides > fold. Unlike other unary operations, we need to check that we still can handle > this vec_cond's first operand is the same as the new truth type. > > I tried a few different v

[PATCH] MATCH: Sink convert for vec_cond

2023-08-16 Thread Andrew Pinski via Gcc-patches
Convert be sinked into a vec_cond if both sides fold. Unlike other unary operations, we need to check that we still can handle this vec_cond's first operand is the same as the new truth type. I tried a few different versions of this patch: view_convert to the new truth_type but that does not work