OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc1/] [gcc/] [testsuite/] [gcc.dg/] [tree-ssa/] [ssa-pre-8.c] - Diff between revs 298 and 338

Only display areas with differences | Details | Blame | View Log

Rev 298 Rev 338
/* { dg-do compile } */
/* { dg-do compile } */
/* { dg-options "-O2 -fno-tree-dominator-opts -fdump-tree-fre-stats" } */
/* { dg-options "-O2 -fno-tree-dominator-opts -fdump-tree-fre-stats" } */
struct s {
struct s {
      int *n;
      int *n;
};
};
 
 
int
int
foo (__SIZE_TYPE__ i, struct s *array)
foo (__SIZE_TYPE__ i, struct s *array)
{
{
  int *p = array[i].n;
  int *p = array[i].n;
  if (p)
  if (p)
    {
    {
      int *q = array[i].n;
      int *q = array[i].n;
      if (p != q)
      if (p != q)
        return 1;
        return 1;
    }
    }
  return 0;
  return 0;
}
}
/* We should eliminate two address calculations, and one load.  */
/* We should eliminate two address calculations, and one load.  */
/* We used to eliminate a cast but that was before POINTER_PLUS_EXPR
/* We used to eliminate a cast but that was before POINTER_PLUS_EXPR
   was added.  */
   was added.  */
/* { dg-final { scan-tree-dump-times "Eliminated: 3" 1 "fre"} } */
/* { dg-final { scan-tree-dump-times "Eliminated: 3" 1 "fre"} } */
/* { dg-final { cleanup-tree-dump "fre" } } */
/* { dg-final { cleanup-tree-dump "fre" } } */
 
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.