[Bug rtl-optimization/50037] Unroll factor exceeds max trip count

2021-12-18 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=50037 --- Comment #9 from Andrew Pinski --- On the trunk, I see no loop at all for the original testcase at -O3. At -O2 -ftree-vectorize, I do see the loop but when I add -funroll-loops, the loop is completely unrolled at the gimple level. So maybe th

[Bug rtl-optimization/50037] Unroll factor exceeds max trip count

2011-08-15 Thread enkovich.gnu at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50037 --- Comment #8 from Ilya Enkovich 2011-08-15 09:06:18 UTC --- This patch did not work for me. Tried on following loop (-O2 -funroll-loops): for ( count = ((*(hdrptr)) & 0x7); count > 0; count--, addr++ ) sum += *addr; No multiplication by

[Bug rtl-optimization/50037] Unroll factor exceeds max trip count

2011-08-11 Thread rguenth at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50037 --- Comment #7 from Richard Guenther 2011-08-11 12:12:56 UTC --- The following patch makes us handle the canonical testcase on the tree level, but not yet the original testcase (because of the * 2). We should really preserve value-range informat

[Bug rtl-optimization/50037] Unroll factor exceeds max trip count

2011-08-11 Thread rguenth at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50037 --- Comment #6 from Richard Guenther 2011-08-11 11:39:44 UTC --- It probably doesn't help that tree IVOPTs replaces the nice induction variable with a pointer one: # BLOCK 2 freq:900 # PRED: ENTRY [100.0%] (fallthru,exec) count_5 = n_4(D)

[Bug rtl-optimization/50037] Unroll factor exceeds max trip count

2011-08-11 Thread rguenth at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50037 --- Comment #5 from Richard Guenther 2011-08-11 11:21:34 UTC --- (In reply to comment #4) > (In reply to comment #3) > > Using > > > > int foo (int n, int *addr) > > { > > int count, sum; > > for ( count = n & 0x3; count >= 0; count--, addr+

[Bug rtl-optimization/50037] Unroll factor exceeds max trip count

2011-08-10 Thread matz at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50037 Michael Matz changed: What|Removed |Added CC||matz at gcc dot gnu.org --- Comment #4 fro

[Bug rtl-optimization/50037] Unroll factor exceeds max trip count

2011-08-10 Thread rguenth at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50037 Richard Guenther changed: What|Removed |Added CC||rakdver at gcc dot gnu.org --- Comment

[Bug rtl-optimization/50037] Unroll factor exceeds max trip count

2011-08-10 Thread enkovich.gnu at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50037 --- Comment #2 from Ilya Enkovich 2011-08-10 15:33:22 UTC --- I wouldn't blame vectorizer here. Following loop is unrolled with unroll factor 8 even if vectorizer is disabled: for ( count = ((*(hdrptr)) & 0x3) * 2; count > 0; count--, addr++ )

[Bug rtl-optimization/50037] Unroll factor exceeds max trip count

2011-08-10 Thread rguenth at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50037 Richard Guenther changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|