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-sink-3.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 -fdump-tree-sink-stats" } */
/* { dg-options "-O2 -fdump-tree-sink-stats" } */
extern void foo(int a);
extern void foo(int a);
int
int
main (int argc)
main (int argc)
{
{
  int a;
  int a;
  a = argc + 1;
  a = argc + 1;
  if (argc + 3)
  if (argc + 3)
    {
    {
      foo (a);
      foo (a);
    }
    }
}
}
/* We should sink the a = argc + 1 calculation into the if branch  */
/* We should sink the a = argc + 1 calculation into the if branch  */
/* { dg-final { scan-tree-dump-times "Sunk statements: 1" 1 "sink" } } */
/* { dg-final { scan-tree-dump-times "Sunk statements: 1" 1 "sink" } } */
/* { dg-final { cleanup-tree-dump "sink" } } */
/* { dg-final { cleanup-tree-dump "sink" } } */
 
 

powered by: WebSVN 2.1.0

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