[Bug c/47892] Fails to vectorize comparison code, if-conversion fails

2011-04-20 Thread rguenth at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47892 Richard Guenther changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|

[Bug c/47892] Fails to vectorize comparison code, if-conversion fails

2011-04-20 Thread rguenth at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47892 --- Comment #7 from Richard Guenther 2011-04-20 15:50:38 UTC --- Author: rguenth Date: Wed Apr 20 15:50:26 2011 New Revision: 172774 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=172774 Log: 2011-04-20 Richard Guenther PR tree-op

[Bug c/47892] Fails to vectorize comparison code, if-conversion fails

2011-02-25 Thread rguenth at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47892 Richard Guenther changed: What|Removed |Added Status|NEW |ASSIGNED AssignedTo|unassigned

[Bug c/47892] Fails to vectorize comparison code, if-conversion fails

2011-02-25 Thread rguenth at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47892 --- Comment #6 from Richard Guenther 2011-02-25 10:57:30 UTC --- On trunk fixed with a patch as simple as Index: gcc/tree-if-conv.c === *** gcc/tree-if-conv.c (revision 170466) ---

[Bug c/47892] Fails to vectorize comparison code, if-conversion fails

2011-02-25 Thread rguenth at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47892 --- Comment #5 from Richard Guenther 2011-02-25 10:37:40 UTC --- PRE makes that better and we have : # i_39 = PHI D.2691_6 = (long unsigned int) i_39; D.2692_7 = D.2691_6 * 4; D.2693_9 = arr_8(D) + D.2692_7; or_10 = MEM[(float *)D.269

[Bug c/47892] Fails to vectorize comparison code, if-conversion fails

2011-02-25 Thread rguenth at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47892 --- Comment #4 from Richard Guenther 2011-02-25 10:31:49 UTC --- Ok, we vectorize on trunk only if I only make the PIO6 float. Otherwise if-conversion does not handle (even with -fno-tree-pre) if (or_10 > 5.2359879016876220703125e-1) goto

[Bug c/47892] Fails to vectorize comparison code, if-conversion fails

2011-02-25 Thread rguenth at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47892 --- Comment #3 from Richard Guenther 2011-02-25 10:24:21 UTC --- Testcase: #define PIO6 0.523598776f #define SA5 2.74201854577e-06f #define SA4 -1.98410347969e-04f #define SA3 8.3320429e-03f #define SA2 -1.666e-01f void bestseries9(

[Bug c/47892] Fails to vectorize comparison code, if-conversion fails

2011-02-25 Thread rguenth at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47892 Richard Guenther changed: What|Removed |Added Keywords||missed-optimization Status

[Bug c/47892] Fails to vectorize comparison code

2011-02-25 Thread jeremysalwen at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47892 --- Comment #1 from jeremysalwen at gmail dot com 2011-02-25 10:19:58 UTC --- Note, even when switching to floating point constants: #define PIO6 0.523598776f #define SA5 2.74201854577e-06f #define SA4 -1.98410347969e-04f #define SA3 8.332042