[Bug tree-optimization/37700] [alias-improvements-branch] redundant load doesn't get eliminated

2009-01-02 Thread rguenth at gcc dot gnu dot org


--- Comment #2 from rguenth at gcc dot gnu dot org  2009-01-03 00:33 ---
This is fixed on the branch.


-- 

rguenth at gcc dot gnu dot org changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||FIXED


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37700



[Bug tree-optimization/37700] [alias-improvements-branch] redundant load doesn't get eliminated

2008-10-01 Thread rguenth at gcc dot gnu dot org


--- Comment #1 from rguenth at gcc dot gnu dot org  2008-10-01 15:33 ---
Smaller testcase, FRE should remove the redundancy but doesn't.

unsigned int out[16];
unsigned int in[16];
unsigned int ia[16];

int
foo (void)
{
  unsigned int i;

  for (i = 0; i  16; ++i)
{
  out[i] = in[i];
  ia[i] = in[i];
}
}

this is because we include VOPs in the value-numbering but fail to
value-number them properly to account for non-aliased stores.


-- 

rguenth at gcc dot gnu dot org changed:

   What|Removed |Added

 Status|UNCONFIRMED |NEW
 Ever Confirmed|0   |1
   Last reconfirmed|-00-00 00:00:00 |2008-10-01 15:33:28
   date||


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37700