[Bug tree-optimization/50374] Support vectorization of min/max location pattern

2014-08-24 Thread Joost.VandeVondele at mat dot ethz.ch
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=50374 Joost VandeVondele Joost.VandeVondele at mat dot ethz.ch changed: What|Removed |Added CC|

[Bug tree-optimization/50374] Support vectorization of min/max location pattern

2014-08-24 Thread steven at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=50374 Steven Bosscher steven at gcc dot gnu.org changed: What|Removed |Added Keywords|

[Bug tree-optimization/50374] Support vectorization of min/max location pattern

2014-08-23 Thread vincenzo.innocente at cern dot ch
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=50374 vincenzo Innocente vincenzo.innocente at cern dot ch changed: What|Removed |Added Known to fail|

[Bug tree-optimization/50374] Support vectorization of min/max location pattern

2011-11-30 Thread vincenzo.innocente at cern dot ch
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50374 --- Comment #26 from vincenzo Innocente vincenzo.innocente at cern dot ch 2011-11-30 09:13:08 UTC --- using a minimal configuration like ./configure --prefix=/something --enable-languages=c,c++ --disable-multilib --disable-bootstrap --enable-lto

[Bug tree-optimization/50374] Support vectorization of min/max location pattern

2011-11-29 Thread vincenzo.innocente at cern dot ch
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50374 --- Comment #21 from vincenzo Innocente vincenzo.innocente at cern dot ch 2011-11-29 09:54:49 UTC --- My understanding is that we cannot count to see a min/max location pattern vectorization in 4.7, isn't it?

[Bug tree-optimization/50374] Support vectorization of min/max location pattern

2011-11-29 Thread jakub at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50374 --- Comment #22 from Jakub Jelinek jakub at gcc dot gnu.org 2011-11-29 09:58:40 UTC --- I gave up on it, because it still needed lots of changes in the generic vectorizer. Guess I can update the patch so that it at least applies, but there is

[Bug tree-optimization/50374] Support vectorization of min/max location pattern

2011-11-29 Thread vincenzo.innocente at cern dot ch
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50374 --- Comment #23 from vincenzo Innocente vincenzo.innocente at cern dot ch 2011-11-29 10:10:06 UTC --- a working patch could be useful to check performance and quality of the generated ASM w.r.t. manually crafted soutions

[Bug tree-optimization/50374] Support vectorization of min/max location pattern

2011-11-29 Thread jakub at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50374 --- Comment #24 from Jakub Jelinek jakub at gcc dot gnu.org 2011-11-29 14:46:59 UTC --- Created attachment 25945 -- http://gcc.gnu.org/bugzilla/attachment.cgi?id=25945 gcc47-pr50374.patch This updated patch applies (had to remove various parts

[Bug tree-optimization/50374] Support vectorization of min/max location pattern

2011-11-29 Thread vincenzo.innocente at cern dot ch
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50374 --- Comment #25 from vincenzo Innocente vincenzo.innocente at cern dot ch 2011-11-29 15:24:02 UTC --- Thanks Jakub for the new patch. Using it I get this: any Idea how to fix/avoid?

[Bug tree-optimization/50374] Support vectorization of min/max location pattern

2011-09-22 Thread irar at il dot ibm.com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50374 --- Comment #18 from Ira Rosen irar at il dot ibm.com 2011-09-22 07:51:35 UTC --- (In reply to comment #16) and -3.c fails with an ICE in the vectorizer, Ira, could you look at that? --- tree-vect-stmts.c 2011-09-22 09:48:34.0

[Bug tree-optimization/50374] Support vectorization of min/max location pattern

2011-09-22 Thread jakub at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50374 Jakub Jelinek jakub at gcc dot gnu.org changed: What|Removed |Added Attachment #25333|0 |1 is

[Bug tree-optimization/50374] Support vectorization of min/max location pattern

2011-09-22 Thread jakub at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50374 --- Comment #20 from Jakub Jelinek jakub at gcc dot gnu.org 2011-09-22 15:52:11 UTC --- The reason why many of the loops in *-12.c aren't vectorized is that for idxtype other than unsigned int which is the type of i there is a cast from i to the

[Bug tree-optimization/50374] Support vectorization of min/max location pattern

2011-09-21 Thread jakub at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50374 Jakub Jelinek jakub at gcc dot gnu.org changed: What|Removed |Added Attachment #25320|0 |1 is

[Bug tree-optimization/50374] Support vectorization of min/max location pattern

2011-09-21 Thread irar at il dot ibm.com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50374 --- Comment #15 from Ira Rosen irar at il dot ibm.com 2011-09-21 12:20:47 UTC --- (In reply to comment #14) Another thing is that this really ought to work even with -ftree-pre, having a vectorization that requires users to disable PRE would

[Bug tree-optimization/50374] Support vectorization of min/max location pattern

2011-09-21 Thread jakub at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50374 Jakub Jelinek jakub at gcc dot gnu.org changed: What|Removed |Added Attachment #25331|0 |1 is

[Bug tree-optimization/50374] Support vectorization of min/max location pattern

2011-09-21 Thread jakub at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50374 --- Comment #17 from Jakub Jelinek jakub at gcc dot gnu.org 2011-09-21 16:57:08 UTC --- Seems my reduction patterns just give some extreme's index, but not necessarily the first or last extreme's index. It was just narrowing down the index

[Bug tree-optimization/50374] Support vectorization of min/max location pattern

2011-09-20 Thread irar at il dot ibm.com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50374 --- Comment #6 from Ira Rosen irar at il dot ibm.com 2011-09-20 08:27:08 UTC --- Thanks for working on this! It looks like the problem is with the way the stmts are marked. We don't insert pattern stmts now, so the things are more tricky. I'll

[Bug tree-optimization/50374] Support vectorization of min/max location pattern

2011-09-20 Thread irar at il dot ibm.com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50374 --- Comment #7 from Ira Rosen irar at il dot ibm.com 2011-09-20 11:45:53 UTC --- Created attachment 25322 -- http://gcc.gnu.org/bugzilla/attachment.cgi?id=25322 fix Here is the fix (it's a diff relative to your patch).

[Bug tree-optimization/50374] Support vectorization of min/max location pattern

2011-09-20 Thread irar at il dot ibm.com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50374 --- Comment #8 from Ira Rosen irar at il dot ibm.com 2011-09-20 11:47:00 UTC --- Created attachment 25323 -- http://gcc.gnu.org/bugzilla/attachment.cgi?id=25323 complete patch including my fix

[Bug tree-optimization/50374] Support vectorization of min/max location pattern

2011-09-20 Thread vincenzo.innocente at cern dot ch
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50374 --- Comment #9 from vincenzo Innocente vincenzo.innocente at cern dot ch 2011-09-20 12:05:01 UTC --- does not compile to me ../.././gcc/tree-vect-loop.c: In function 'vect_is_simple_reduction_1': ../.././gcc/tree-vect-loop.c:2237:35: warning:

[Bug tree-optimization/50374] Support vectorization of min/max location pattern

2011-09-20 Thread irar at il dot ibm.com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50374 Ira Rosen irar at il dot ibm.com changed: What|Removed |Added Attachment #25322|0 |1 is obsolete|

[Bug tree-optimization/50374] Support vectorization of min/max location pattern

2011-09-20 Thread irar at il dot ibm.com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50374 Ira Rosen irar at il dot ibm.com changed: What|Removed |Added Attachment #25323|0 |1 is obsolete|

[Bug tree-optimization/50374] Support vectorization of min/max location pattern

2011-09-20 Thread vincenzo.innocente at cern dot ch
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50374 --- Comment #12 from vincenzo Innocente vincenzo.innocente at cern dot ch 2011-09-20 13:46:16 UTC --- I'm getting these errors ../.././gcc/optabs.c: In function 'optab_d* optab_for_tree_code(tree_code, const_tree, optab_subtype)':

[Bug tree-optimization/50374] Support vectorization of min/max location pattern

2011-09-20 Thread jakub at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50374 --- Comment #13 from Jakub Jelinek jakub at gcc dot gnu.org 2011-09-20 14:01:55 UTC --- Ira, thanks for your help, I'll continue working on this now. To vincenzo, this patch isn't finished, so it is premature to test it.

[Bug tree-optimization/50374] Support vectorization of min/max location pattern

2011-09-19 Thread jakub at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50374 --- Comment #4 from Jakub Jelinek jakub at gcc dot gnu.org 2011-09-19 12:51:59 UTC --- I've looked briefly at the http://gcc.gnu.org/ml/gcc-patches/2010-08/msg00631.html patch, it seems the UNSPEC_REDUC* is unnecessary there (only used in the

[Bug tree-optimization/50374] Support vectorization of min/max location pattern

2011-09-19 Thread jakub at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50374 --- Comment #5 from Jakub Jelinek jakub at gcc dot gnu.org 2011-09-19 15:59:06 UTC --- Created attachment 25320 -- http://gcc.gnu.org/bugzilla/attachment.cgi?id=25320 gcc47-pr50374-wip.patch Here is the ported patch with rejects hopefully

[Bug tree-optimization/50374] Support vectorization of min/max location pattern

2011-09-13 Thread irar at il dot ibm.com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50374 Ira Rosen irar at il dot ibm.com changed: What|Removed |Added CC||irar at il dot ibm.com

[Bug tree-optimization/50374] Support vectorization of min/max location pattern

2011-09-13 Thread jakub at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50374 Jakub Jelinek jakub at gcc dot gnu.org changed: What|Removed |Added CC||jakub at gcc dot

[Bug tree-optimization/50374] Support vectorization of min/max location pattern

2011-09-13 Thread vincenzo.innocente at cern dot ch
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50374 --- Comment #3 from vincenzo Innocente vincenzo.innocente at cern dot ch 2011-09-13 08:45:40 UTC --- with gcc version 4.7.0 20110910 (experimental) (GCC) int lmin(float const * __restrict__ c, int N) { int k=0; for (int i=1; i!=N; ++i)