Re: [PATCH] MATCH: [PR111002] Sink view_convert for vec_cond

2023-08-21 Thread Richard Biener via Gcc-patches
On Mon, Aug 21, 2023 at 5:22 AM Andrew Pinski via Gcc-patches wrote: > > Like convert we can sink view_convert into vec_cond but > we can only do it if the element types are nop_conversions. > This is to allow conversion between signed and unsigned types only. > Rather than between integer and

[PATCH] MATCH: [PR111002] Sink view_convert for vec_cond

2023-08-20 Thread Andrew Pinski via Gcc-patches
Like convert we can sink view_convert into vec_cond but we can only do it if the element types are nop_conversions. This is to allow conversion between signed and unsigned types only. Rather than between integer and float types which mess up the vec_cond so that isel does not understand `a?-1:0`