Re: [RFC][mid-end] Support vectorization of complex numbers using machine instructions.

2018-10-19 Thread Richard Sandiford
Tamar Christina writes: >> > so I'd need 5 parameters and then I'm guessing the other expressions >> would be removed by DCE at some point? >> >> Are you planning to make the FCMLA behaviour directly available as an >> internal function or provide a higher-level one that does a full complex >> mu

RE: [RFC][mid-end] Support vectorization of complex numbers using machine instructions.

2018-10-18 Thread Tamar Christina
Hi Richard, Thanks for all the help so far, > > so I'd need 5 parameters and then I'm guessing the other expressions > would be removed by DCE at some point? > > Are you planning to make the FCMLA behaviour directly available as an > internal function or provide a higher-level one that does a fu

Re: [RFC][mid-end] Support vectorization of complex numbers using machine instructions.

2018-10-17 Thread Richard Sandiford
Tamar Christina writes: > Hi Richard, >> > [...] >> > 3) So I abandoned vec-patterns and instead tried to do it in >> > tree-vect-slp.c in vect_analyze_slp_instance just after the SLP tree >> > is created. Matching the SLP tree is quite simple and getting it to >> > emit the right SLP tree was si

RE: [RFC][mid-end] Support vectorization of complex numbers using machine instructions.

2018-10-17 Thread Tamar Christina
Hi Richard, > > [...] > > 3) So I abandoned vec-patterns and instead tried to do it in > > tree-vect-slp.c in vect_analyze_slp_instance just after the SLP tree > > is created. Matching the SLP tree is quite simple and getting it to > > emit the right SLP tree was simple enough,except that at this

Re: [RFC][mid-end] Support vectorization of complex numbers using machine instructions.

2018-10-16 Thread Richard Sandiford
Tamar Christina writes: > Hi All, > > I am trying to add support to the auto-vectorizer for complex operations where > a target has instructions for. > > The instructions I have are only available as vector instructions. The > operations > are complex addition with a rotation or complex fmla wit