[Bug optimization/14770] redundant store due to the fact that implicit set is not noticed

pinskia at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Tue Mar 30 00:13:00 GMT 2004


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-03-30 00:13 -------
Confirmed, even without saying foo(0) aka writing foo (a):
void foo (int);

void
bar (int a)
{
  if (!a)
    foo (a);
}
Gives the same asm which is worse than before as we had said that the variable should 
not change.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
   Last reconfirmed|0000-00-00 00:00:00         |2004-03-30 00:13:42
               date|                            |


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



More information about the Gcc-bugs mailing list