Commit 13604671 by Martin Jambor Committed by Martin Jambor

loadpre1.c: Deleted trailing whitespace, renamed main to foo.

2010-03-26  Martin Jambor  <mjambor@suse.cz>

	* gcc/testsuite/gcc.dg/tree-ssa/loadpre1.c: Deleted trailing
	whitespace, renamed main to foo.
	* gcc/testsuite/gcc.dg/tree-ssa/loadpre14.c: Likewise.
	* gcc/testsuite/gcc.dg/tree-ssa/loadpre15.c: Likewise.
	* gcc/testsuite/gcc.dg/tree-ssa/loadpre16.c: Likewise.
	* gcc/testsuite/gcc.dg/tree-ssa/loadpre17.c: Likewise.
	* gcc/testsuite/gcc.dg/tree-ssa/loadpre19.c: Likewise.
	* gcc/testsuite/gcc.dg/tree-ssa/loadpre20.c: Likewise.
	* gcc/testsuite/gcc.dg/tree-ssa/loadpre3.c: Likewise.
	* gcc/testsuite/gcc.dg/tree-ssa/loadpre5.c: Likewise.
	* gcc/testsuite/gcc.dg/tree-ssa/ssa-pre-1.c: Likewise.
	* gcc/testsuite/gcc.dg/tree-ssa/ssa-pre-4.c: Likewise.
	* gcc/testsuite/gcc.dg/tree-ssa/ssa-pre-6.c: Likewise.

From-SVN: r157748
parent 7502f427
2010-03-26 Martin Jambor <mjambor@suse.cz>
* gcc/testsuite/gcc.dg/tree-ssa/loadpre1.c: Deleted trailing
whitespace, renamed main to foo.
* gcc/testsuite/gcc.dg/tree-ssa/loadpre14.c: Likewise.
* gcc/testsuite/gcc.dg/tree-ssa/loadpre15.c: Likewise.
* gcc/testsuite/gcc.dg/tree-ssa/loadpre16.c: Likewise.
* gcc/testsuite/gcc.dg/tree-ssa/loadpre17.c: Likewise.
* gcc/testsuite/gcc.dg/tree-ssa/loadpre19.c: Likewise.
* gcc/testsuite/gcc.dg/tree-ssa/loadpre20.c: Likewise.
* gcc/testsuite/gcc.dg/tree-ssa/loadpre3.c: Likewise.
* gcc/testsuite/gcc.dg/tree-ssa/loadpre5.c: Likewise.
* gcc/testsuite/gcc.dg/tree-ssa/ssa-pre-1.c: Likewise.
* gcc/testsuite/gcc.dg/tree-ssa/ssa-pre-4.c: Likewise.
* gcc/testsuite/gcc.dg/tree-ssa/ssa-pre-6.c: Likewise.
2010-03-26 Dodji Seketeli <dodji@redhat.com>
PR c++/43327
......
/* { dg-do compile } */
/* { dg-do compile } */
/* { dg-options "-O2 -fdump-tree-pre-stats" } */
int main(int *a, int argc)
int foo(int *a, int argc)
{
int c;
int d, e;
/* Should be able to eliminate the second load of *a along the main path. */
d = *a;
if (argc)
......
/* { dg-do compile } */
/* { dg-do compile } */
/* { dg-options "-O2 -fdump-tree-pre-stats" } */
typedef int type[2];
int main(type *a, int argc)
int foo(type *a, int argc)
{
type c = {0, 1};
int d, e;
/* Should be able to eliminate the second load of *a along the main path. */
d = (*a)[0];
if (argc)
......
/* { dg-do compile } */
/* { dg-do compile } */
/* { dg-options "-O2 -fdump-tree-pre-stats" } */
typedef int type[2];
int main(type *a, int argc, int t)
int foo(type *a, int argc, int t)
{
type c = {0, 1};
int d, e;
/* Should be able to eliminate the second load of *a along the main path. */
d = (*a)[t];
if (argc)
......
/* { dg-do compile } */
/* { dg-do compile } */
/* { dg-options "-O2 -fdump-tree-pre-stats" } */
typedef int type[2];
int main(type *a, int argc)
int foo(type *a, int argc)
{
int d, e;
/* Should be able to eliminate the second load of *a along the main path. */
d = (*a)[0];
if (argc)
......
/* { dg-do compile } */
/* { dg-do compile } */
/* { dg-options "-O2 -fdump-tree-pre-stats" } */
typedef int type[2];
int main(type *a, int argc)
int foo(type *a, int argc)
{
int d, e;
/* Should be able to eliminate the second load of *a along the main path. */
d = (*a)[argc];
if (argc)
......
/* { dg-do compile } */
/* { dg-do compile } */
/* { dg-options "-O2 -fdump-tree-pre-stats" } */
typedef int type[2];
int main(type *a, int argc)
int foo(type *a, int argc)
{
int d, e;
/* Should be able to eliminate the second load of *a along the main path. */
d = (*a)[argc];
if (!d)
......
/* { dg-do compile } */
/* { dg-do compile } */
/* { dg-options "-O2 -fdump-tree-pre-stats" } */
typedef int type[2];
int main(type *a, int argc)
int foo(type *a, int argc)
{
int d, e;
/* Should be able to eliminate the second load of *a along the main path. */
d = (*a)[argc];
if (!d)
......
/* { dg-do compile } */
/* { dg-do compile } */
/* { dg-options "-O2 -fdump-tree-pre-stats" } */
int main(int **a,int argc)
int foo(int **a,int argc)
{
int b;
int d, e;
......@@ -13,7 +13,7 @@ int main(int **a,int argc)
{
}
/* Should be able to eliminate one of the *(*a)'s along the if path
/* Should be able to eliminate one of the *(*a)'s along the if path
by pushing it into the else path. We will also eliminate
one of the *a's. */
e = *(*a);
......
/* { dg-do compile } */
/* { dg-do compile } */
/* { dg-options "-O2 -fdump-tree-pre-stats" } */
int p;
int r;
......@@ -8,7 +8,7 @@ static int a(void)
{
return p;
}
int main(int argc)
int foo(int argc)
{
int q;
q = a();
......
/* { dg-do compile } */
/* { dg-do compile } */
/* { dg-options "-O2 -fdump-tree-pre-stats" } */
extern int printf (const char *, ...);
int main(int argc, char **argv)
int foo(int argc, char **argv)
{
int a;
int b;
......@@ -15,7 +15,7 @@ int main(int argc, char **argv)
}
printf ("%d, %d\n", a, b + c);
}
/* We should eliminate one evaluation of b + c along the main path,
/* We should eliminate one evaluation of b + c along the main path,
causing one reload. */
/* { dg-final { scan-tree-dump-times "Eliminated: 1" 1 "pre"} } */
/* { dg-final { cleanup-tree-dump "pre" } } */
/* { dg-do compile } */
/* { dg-do compile } */
/* { dg-options "-O2 -fdump-tree-pre-stats" } */
int main(void)
int foo(void)
{
int x, c, y;
x = 3;
......
/* { dg-do compile } */
/* { dg-do compile } */
/* { dg-options "-O2 -fdump-tree-pre-stats" } */
int main(int x)
int foo(int x)
{
int c, y;
if (c)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment