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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.dg/] [tree-ssa/] [loadpre5.c] - Blame information for rev 816

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 149 jeremybenn
/* { dg-do compile } */
2
/* { dg-options "-O2 -fdump-tree-pre-stats" } */
3
int p;
4
int r;
5
int a(void)
6
{
7
  return p;
8
}
9
int main(int argc)
10
{
11
  int q;
12
  q = a();
13
 
14
  /* We should be able to move the call to a into the if path.
15
     in a perfect world, we'd actually decide that it can't touch
16
     r, and not recompute it at all!.  */
17
  if (argc)
18
    r = 9;
19
  return q + a();
20
}
21
/* { dg-final { scan-tree-dump-times "Eliminated: 1" 1 "pre"} } */
22
/* { dg-final { cleanup-tree-dump "pre" } } */

powered by: WebSVN 2.1.0

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