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-1.c] - Blame information for rev 338

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 298 jeremybenn
/* { dg-do compile } */
2
/* { dg-options "-O2 -fdump-tree-sink-stats" } */
3
int
4
foo (int a, int b, int c)
5
{
6
  int x = a * b;
7
  return c ? x : a;
8
}
9
/* We should sink the x = a * b calculation into the branch that returns x. */
10
/* { dg-final { scan-tree-dump-times "Sunk statements: 1" 1 "sink" } } */
11
/* { 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.