Re: [PATCH, PR middle-end/71488] Fix vectorization of comparison of booleans

2016-06-27 Thread Ilya Enkovich
Looks like it caused PR71655 and therefore is not so safe :/ Ilya 2016-06-22 17:00 GMT+03:00 Ilya Enkovich : > 2016-06-21 23:57 GMT+03:00 Jeff Law : >> On 06/16/2016 05:06 AM, Ilya Enkovich wrote: >>> >>> Hi, >>> >>> This patch fixes incorrect comparison

Re: [PATCH, PR middle-end/71488] Fix vectorization of comparison of booleans

2016-06-22 Thread Ilya Enkovich
2016-06-21 23:57 GMT+03:00 Jeff Law : > On 06/16/2016 05:06 AM, Ilya Enkovich wrote: >> >> Hi, >> >> This patch fixes incorrect comparison vectorization for booleans. >> The problem is that regular comparison which works for scalars >> doesn't work for vectors due to different

Re: [PATCH, PR middle-end/71488] Fix vectorization of comparison of booleans

2016-06-21 Thread Jeff Law
On 06/16/2016 05:06 AM, Ilya Enkovich wrote: Hi, This patch fixes incorrect comparison vectorization for booleans. The problem is that regular comparison which works for scalars doesn't work for vectors due to different binary representation. Also this never works for scalar masks. This patch

[PATCH, PR middle-end/71488] Fix vectorization of comparison of booleans

2016-06-16 Thread Ilya Enkovich
Hi, This patch fixes incorrect comparison vectorization for booleans. The problem is that regular comparison which works for scalars doesn't work for vectors due to different binary representation. Also this never works for scalar masks. This patch replaces such comparisons with bitwise