Re: real_zerop for vectors

2012-10-29 Thread Marc Glisse
On Mon, 29 Oct 2012, Richard Biener wrote: On Sun, Oct 28, 2012 at 4:14 PM, Marc Glisse wrote: Hello, this patch lets some predicates on floating point constants answer true for vectors, so optimizations are applied. Tested bootstrap + testsuite (default languages). Ok. Bonus points if yo

Re: real_zerop for vectors

2012-10-29 Thread Richard Biener
On Sun, Oct 28, 2012 at 4:14 PM, Marc Glisse wrote: > Hello, > > this patch lets some predicates on floating point constants answer true for > vectors, so optimizations are applied. > > Tested bootstrap + testsuite (default languages). Ok. Bonus points if you quickly eyed users of whether they m

Re: real_zerop for vectors

2012-10-28 Thread Paolo Carlini
On 10/28/2012 06:06 PM, Marc Glisse wrote: On Sun, 28 Oct 2012, Paolo Carlini wrote: I was writing something like the below. I would move the one-liners (real_zerop, etc) to tree.h, but that looks good, yes. Ah great. But please, don't wait on me, I'm in the middle of too many other things,

Re: real_zerop for vectors

2012-10-28 Thread Marc Glisse
On Sun, 28 Oct 2012, Paolo Carlini wrote: I was writing something like the below. I would move the one-liners (real_zerop, etc) to tree.h, but that looks good, yes. -- Marc Glisse

Re: real_zerop for vectors

2012-10-28 Thread Paolo Carlini
Hi, On 10/28/2012 05:51 PM, Marc Glisse wrote: On Sun, 28 Oct 2012, Marc Glisse wrote: [there are 4 real_*p that only differ by 1 character] It is true that we could have a single function in tree.c: bool real_intcstp (const_tree, int); The helper function could even take a REAL_VALUE_TYPE

Re: real_zerop for vectors

2012-10-28 Thread Marc Glisse
On Sun, 28 Oct 2012, Marc Glisse wrote: [there are 4 real_*p that only differ by 1 character] It is true that we could have a single function in tree.c: bool real_intcstp (const_tree, int); The helper function could even take a REAL_VALUE_TYPE as second argument, so the non-inline part doesn

Re: real_zerop for vectors

2012-10-28 Thread Marc Glisse
On Sun, 28 Oct 2012, Paolo Carlini wrote: On 10/28/2012 04:46 PM, Paolo Carlini wrote: On 10/28/2012 04:14 PM, Marc Glisse wrote: Hello, this patch lets some predicates on floating point constants answer true for vectors, so optimizations are applied. Great. I wonder how are we doing latel

Re: real_zerop for vectors

2012-10-28 Thread Paolo Carlini
On 10/28/2012 04:46 PM, Paolo Carlini wrote: On 10/28/2012 04:14 PM, Marc Glisse wrote: Hello, this patch lets some predicates on floating point constants answer true for vectors, so optimizations are applied. Great. I wonder how are we doing lately in terms of function pointer inlining?! I

Re: real_zerop for vectors

2012-10-28 Thread Paolo Carlini
On 10/28/2012 04:14 PM, Marc Glisse wrote: Hello, this patch lets some predicates on floating point constants answer true for vectors, so optimizations are applied. Great. I wonder how are we doing lately in terms of function pointer inlining?! If the current optimizers can already able to s

real_zerop for vectors

2012-10-28 Thread Marc Glisse
Hello, this patch lets some predicates on floating point constants answer true for vectors, so optimizations are applied. Tested bootstrap + testsuite (default languages). 2012-10-29 Marc Glisse PR middle-end/55027 gcc/ * tree.c (real_zerop, real_onep, real_twop, real_min