Re: [PATCH] tree-optimization/101756 - avoid vectorizing boolean MAX reductions

2021-08-05 Thread Richard Biener
On Thu, 5 Aug 2021, Christophe Lyon wrote: > On Wed, Aug 4, 2021 at 12:33 PM Richard Biener wrote: > > > The following avoids vectorizing MIN/MAX reductions on bools which, > > when ending up as vector(2) would need to be > > adjusted because of the sign change. The fix instead avoids any > >

Re: [PATCH] tree-optimization/101756 - avoid vectorizing boolean MAX reductions

2021-08-05 Thread Christophe Lyon via Gcc-patches
On Wed, Aug 4, 2021 at 12:33 PM Richard Biener wrote: > The following avoids vectorizing MIN/MAX reductions on bools which, > when ending up as vector(2) would need to be > adjusted because of the sign change. The fix instead avoids any > reduction vectorization where the result isn't compatibl

[PATCH] tree-optimization/101756 - avoid vectorizing boolean MAX reductions

2021-08-04 Thread Richard Biener
The following avoids vectorizing MIN/MAX reductions on bools which, when ending up as vector(2) would need to be adjusted because of the sign change. The fix instead avoids any reduction vectorization where the result isn't compatible to the original scalar type since we don't compensate for that