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

Subversion Repositories scarts

[/] [scarts/] [trunk/] [toolchain/] [scarts-gcc/] [gcc-4.1.1/] [gcc/] [testsuite/] [gcc.dg/] [tree-ssa/] [ssa-pre-2.c] - Blame information for rev 12

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 12 jlechner
/* { dg-do compile } */
2
/* { dg-options "-O2 -fdump-tree-pre-stats" } */
3
int motion_test1(int data, int data_0, int data_3, int v)
4
{
5
        int i;
6
        int t, u;
7
 
8
        if (data)
9
                i = data_0 + data_3;
10
        else {
11
                v = 2;
12
                i = 5;
13
        }
14
        t = data_0 + data_3;
15
        u = i;
16
        return v * t * u;
17
}
18
/* We should eliminate one computation of data_0 + data_3 along the
19
   main path, causing one reload. */
20
/* { dg-final { scan-tree-dump-times "Eliminated: 1" 1 "pre"} } */
21
/* { 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.