This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug tree-optimization/18792] ICE with -O1 -ftree-loop-linear on small test case


------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]