------- Additional Comments From pinskia at gcc dot gnu dot org  2005-05-11 
22:25 -------
Another testcase which shows it is not related to casts:
int do_locator (int *call)
{
  int type = 1;
  if (call != 0)
    type = *call;
  return type * 4 + 1;
}

int do_locator1 (int *call)
{
  int prephitmp5;
  prephitmp5 = 5;
  if (call != 0)
    prephitmp5 = *call * 4 + 1;
  return prephitmp5;
}

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|missing PRE opportunity with|missing PRE opportunity with
                   |cast after cast             |operand after operand


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

Reply via email to