This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/18792] ICE with -O1 -ftree-loop-linear on small test case
- From: "fjahanian at apple dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 7 Dec 2004 23:04:14 -0000
- Subject: [Bug tree-optimization/18792] ICE with -O1 -ftree-loop-linear on small test case
- References: <20041202193143.18792.fjahanian@apple.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From fjahanian at apple dot com 2004-12-07 23:04 -------
I agree that bug is before linear loop xform. Make a slight, none-cfg change to the test case and
loop_nbr come out different (and sequential in the nesting). Somehow, changing the first loop
condition makes a big difference!
void put_atoms_in_triclinic_unitcell(int i, float x[1][3])
{
int d;
while (i < 0)
for (d=0; d<=3; d++)
x[i][d] = 0;
while (x[i][3] >= 0)
for (d=0; d<=3; d++)
x[i][d] = 0;
}
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18792