Re: [PATCH, RFC, rs6000, v2] folding of vec_splat

2018-08-16 Thread Will Schmidt
On Thu, 2018-08-16 at 15:51 -0500, Segher Boessenkool wrote: > Hi Will, > > On Thu, Aug 16, 2018 at 10:50:45AM -0500, Will Schmidt wrote: > > 2018-08-16 Will Schmidt > > > > * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Add support for > > early gimple folding of vec_splat()

Re: [PATCH, RFC, rs6000, v2] folding of vec_splat

2018-08-16 Thread Segher Boessenkool
Hi Will, On Thu, Aug 16, 2018 at 10:50:45AM -0500, Will Schmidt wrote: > 2018-08-16 Will Schmidt > > * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Add support for > early gimple folding of vec_splat(). Continuation lines should be indented to the *, not to the text afte

[PATCH, RFC, rs6000, v2] folding of vec_splat

2018-08-16 Thread Will Schmidt
Hi Enable GIMPLE folding of the vec_splat() intrinsic. (v2). This uses the tree_vec_extract() function out of tree-vect-generic.c to retrieve the splat value, which is a BIT_FIELD_REF. That function is made non-static as part of this change. Testcases are already in-tree. V2 upda