Re: [committed] vect: Fix comparisons between invariant booleans [PR94727]

2020-04-27 Thread Christophe Lyon via Gcc-patches
On Thu, 23 Apr 2020 at 16:48, Richard Sandiford wrote: > > This PR was caused by mismatched expectations between > vectorizable_comparison and SLP. We had a "<" comparison > between two booleans that were leaves of the SLP tree, so > vectorizable_comparison fell back on: > > /* Invariant compar

[committed] vect: Fix comparisons between invariant booleans [PR94727]

2020-04-23 Thread Richard Sandiford
This PR was caused by mismatched expectations between vectorizable_comparison and SLP. We had a "<" comparison between two booleans that were leaves of the SLP tree, so vectorizable_comparison fell back on: /* Invariant comparison. */ if (!vectype) { vectype = get_vectype_for_scala