Re: Pass the data vector mode to get_mask_mode

2019-10-25 Thread Richard Biener
On Thu, Oct 24, 2019 at 9:45 AM Richard Sandiford wrote: > > Bernhard Reutner-Fischer writes: > > On 23 October 2019 13:16:19 CEST, Richard Sandiford > > wrote: > > > >>+++ gcc/config/gcn/gcn.c 2019-10-23 12:13:54.091122156 +0100 > >>@@ -3786,8 +3786,7 @@ gcn_expand_builtin (tree exp, rtx

Re: Pass the data vector mode to get_mask_mode

2019-10-24 Thread Richard Sandiford
Bernhard Reutner-Fischer writes: > On 23 October 2019 13:16:19 CEST, Richard Sandiford > wrote: > >>+++ gcc/config/gcn/gcn.c 2019-10-23 12:13:54.091122156 +0100 >>@@ -3786,8 +3786,7 @@ gcn_expand_builtin (tree exp, rtx target >>a vector. */ >> >> opt_machine_mode >>-gcn_vectorize_get_

Re: Pass the data vector mode to get_mask_mode

2019-10-23 Thread Bernhard Reutner-Fischer
On 23 October 2019 13:16:19 CEST, Richard Sandiford wrote: >+++ gcc/config/gcn/gcn.c 2019-10-23 12:13:54.091122156 +0100 >@@ -3786,8 +3786,7 @@ gcn_expand_builtin (tree exp, rtx target >a vector. */ > > opt_machine_mode >-gcn_vectorize_get_mask_mode (poly_uint64 ARG_UNUSED (nunits),

Pass the data vector mode to get_mask_mode

2019-10-23 Thread Richard Sandiford
This patch passes the data vector mode to get_mask_mode, rather than its size and nunits. This is a bit simpler and allows targets to distinguish between modes that happen to have the same size and number of elements. Tested individually on aarch64-linux-gnu and as a series on x86_64-linux-gnu.