[Bug middle-end/35085] [4.3 Regression] gcc.dg/vect/vect-iv-9.c fails
--- Comment #9 from ismail at pardus dot org dot tr 2008-02-06 09:34 --- CC'ing Dorit to get his idea on the vectorizer dump. -- ismail at pardus dot org dot tr changed: What|Removed |Added CC||dorit at il dot ibm dot com http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35085
[Bug middle-end/35085] [4.3 Regression] gcc.dg/vect/vect-iv-9.c fails
--- Comment #10 from ubizjak at gmail dot com 2008-02-06 13:32 --- I have noticed, that following text is missing from your vect dump: Dependence tester statistics: Number of dependence tests: 0 Number of dependence tests classified dependent: 0 Number of dependence tests classified independent: 0 Number of undetermined dependence tests: 0 Number of subscript tests: 0 Number of undetermined subscript tests: 0 Number of same subscript function: 0 Number of ziv tests: 0 Number of ziv tests returning dependent: 0 Number of ziv tests returning independent: 0 Number of ziv tests unimplemented: 0 Number of siv tests: 0 Number of siv tests returning dependent: 0 Number of siv tests returning independent: 0 Number of siv tests unimplemented: 0 Number of miv tests: 0 Number of miv tests returning dependent: 0 Number of miv tests returning independent: 0 Number of miv tests unimplemented: 0 -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35085
[Bug middle-end/35085] [4.3 Regression] gcc.dg/vect/vect-iv-9.c fails
--- Comment #11 from ismail at pardus dot org dot tr 2008-02-06 13:33 --- (In reply to comment #10) I have noticed, that following text is missing from your vect dump: Dependence tester statistics: Number of dependence tests: 0 Number of dependence tests classified dependent: 0 Number of dependence tests classified independent: 0 Number of undetermined dependence tests: 0 Number of subscript tests: 0 Number of undetermined subscript tests: 0 Number of same subscript function: 0 Number of ziv tests: 0 Number of ziv tests returning dependent: 0 Number of ziv tests returning independent: 0 Number of ziv tests unimplemented: 0 Number of siv tests: 0 Number of siv tests returning dependent: 0 Number of siv tests returning independent: 0 Number of siv tests unimplemented: 0 Number of miv tests: 0 Number of miv tests returning dependent: 0 Number of miv tests returning independent: 0 Number of miv tests unimplemented: 0 I don't why but I didn't modify the vector dump :/ -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35085
[Bug middle-end/35085] [4.3 Regression] gcc.dg/vect/vect-iv-9.c fails
--- Comment #12 from ubizjak at gmail dot com 2008-02-06 14:02 --- (In reply to comment #11) (In reply to comment #10) I have noticed, that following text is missing from your vect dump: I don't why but I didn't modify the vector dump :/ Eh, my dump was produced with -fdump-tree-vect-all. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35085
[Bug middle-end/35085] [4.3 Regression] gcc.dg/vect/vect-iv-9.c fails
--- Comment #13 from ubizjak at gmail dot com 2008-02-06 14:11 --- I think that following difference is the key: In case vectorizer is able to vecotrize, we enter vectorizer pass with: bb 3: # ivtmp.17_1 = PHI ivtmp.17_2(4), 26(2) # i_18 = PHI i_10(4), 0(2) # s_17 = PHI s_9(4), X_3(D)(2) D.2002_7 = a[i_18]; D.2003_8 = i_18 + D.2002_7; s_9 = D.2003_8 + s_17; i_10 = i_18 + 1; ivtmp.17_2 = ivtmp.17_1 - 1; if (ivtmp.17_2 != 0) goto bb 4; else goto bb 5; and in case vectorizer is not able to vectorize (your case): bb 3: # ivtmp.17_1 = PHI ivtmp.17_2(4), 26(2) # s_18 = PHI s_9(4), X_3(D)(2) # i_17 = PHI i_10(4), 0(2) D.2020_7 = a[i_17]; D.2021_8 = s_18 + i_17; s_9 = D.2021_8 + D.2020_7; i_10 = i_17 + 1; ivtmp.17_2 = ivtmp.17_1 - 1; if (ivtmp.17_2 != 0) goto bb 4; else goto bb 5; In success case, we have: vect-iv-9.c:15: note: detected reduction:D.2003_8 + s_17 vect-iv-9.c:15: note: Detected reduction. in your case, vectorizer chokes with: vect-iv-9.c:15: note: reduction: unknown pattern.D.2021_8 + D.2020_7 I don't know, why there is a difference between my and your tree dump... -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35085
[Bug middle-end/35085] [4.3 Regression] gcc.dg/vect/vect-iv-9.c fails
--- Comment #14 from ismail at pardus dot org dot tr 2008-02-06 17:01 --- I tried building without BOOT_CFLAGS and such but no luck. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35085
[Bug middle-end/35085] [4.3 regression] gcc.dg/vect/vect-iv-9.c fails
--- Comment #1 from rguenth at gcc dot gnu dot org 2008-02-05 10:19 --- Works for me. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35085
[Bug middle-end/35085] [4.3 regression] gcc.dg/vect/vect-iv-9.c fails
--- Comment #2 from ismail at pardus dot org dot tr 2008-02-05 10:21 --- I bootstrapped twice and still get it. I will try svn up, reboot the machine etc *sigh* -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35085
[Bug middle-end/35085] [4.3 regression] gcc.dg/vect/vect-iv-9.c fails
--- Comment #3 from ismail at pardus dot org dot tr 2008-02-05 11:53 --- Ok on a third bootstrap I can still reproduce, is there a way to debug it? -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35085
[Bug middle-end/35085] [4.3 regression] gcc.dg/vect/vect-iv-9.c fails
--- Comment #4 from rguenth at gcc dot gnu dot org 2008-02-05 12:35 --- How does it fail? -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35085
[Bug middle-end/35085] [4.3 Regression] gcc.dg/vect/vect-iv-9.c fails
-- rguenth at gcc dot gnu dot org changed: What|Removed |Added Summary|[4.3 regression]|[4.3 Regression] |gcc.dg/vect/vect-iv-9.c |gcc.dg/vect/vect-iv-9.c |fails |fails Target Milestone|--- |4.3.0 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35085
[Bug middle-end/35085] [4.3 regression] gcc.dg/vect/vect-iv-9.c fails
--- Comment #5 from ismail at pardus dot org dot tr 2008-02-05 12:38 --- The long only shows: FAIL: gcc.dg/vect/vect-iv-9.c scan-tree-dump-times vect vectorized 1 loops 2 nothing else. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35085
[Bug middle-end/35085] [4.3 regression] gcc.dg/vect/vect-iv-9.c fails
--- Comment #6 from rguenth at gcc dot gnu dot org 2008-02-05 12:38 --- does making int a[N]; aligned fix it? That is int a[N] __attribute__((aligned(16))); ? -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35085
[Bug middle-end/35085] [4.3 Regression] gcc.dg/vect/vect-iv-9.c fails
--- Comment #7 from ismail at pardus dot org dot tr 2008-02-05 13:20 --- Adding __attribute__((aligned(16))) doesn't work, attached is the *.vect file. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35085
[Bug middle-end/35085] [4.3 Regression] gcc.dg/vect/vect-iv-9.c fails
--- Comment #8 from ismail at pardus dot org dot tr 2008-02-05 13:20 --- Created an attachment (id=15099) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=15099action=view) *.vect file -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35085