Re: [1/5] Improve tree-vect-patterns.c handling of boolean comparisons

2019-11-29 Thread Richard Biener
On Fri, Nov 29, 2019 at 11:12 AM Richard Sandiford wrote: > > vect_recog_bool_pattern assumed that a comparison between two booleans > should always become a comparison of vector mask types (implemented as an > XOR_EXPR). But if the booleans in question are generated as data values > (e.g. becaus

[1/5] Improve tree-vect-patterns.c handling of boolean comparisons

2019-11-29 Thread Richard Sandiford
vect_recog_bool_pattern assumed that a comparison between two booleans should always become a comparison of vector mask types (implemented as an XOR_EXPR). But if the booleans in question are generated as data values (e.g. because they're loaded directly from memory), we should treat them like ord