This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/35085] [4.3 Regression] gcc.dg/vect/vect-iv-9.c fails
- From: "ubizjak at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 7 Feb 2008 09:01:27 -0000
- Subject: [Bug tree-optimization/35085] [4.3 Regression] gcc.dg/vect/vect-iv-9.c fails
- References: <bug-35085-10490@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #20 from ubizjak at gmail dot com 2008-02-07 09:01 -------
>From the logs:
tree-reassoc in failed case transforms:
D.2020_7 = a[i_17];
D.2021_8 = D.2020_7 + i_17;
s_9 = D.2021_8 + s_18;
to:
D.2020_7 = a[i_17];
D.2021_8 = s_18 + i_17;
s_9 = D.2021_8 + D.2020_7;
In my case, it transforms:
D.2002_7 = a[i_18];
D.2003_8 = D.2002_7 + i_18;
s_9 = D.2003_8 + s_17;
to
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;
What happens if you add -fno-tree-reassoc to your compile flags? In my case it
still vectorizes both loops.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35085