From: Richard Guenther Date: Fri, 25 Mar 2011 11:59:19 +0000 (+0000) Subject: passes.c (init_optimization_passes): Add FRE pass after early SRA. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=605896f5527472717f9fe91ad90f9ce3778cc540;p=gcc.git passes.c (init_optimization_passes): Add FRE pass after early SRA. 2011-03-25 Richard Guenther * passes.c (init_optimization_passes): Add FRE pass after early SRA. * g++.dg/tree-ssa/pr41186.C: Scan the appropriate FRE dump. * g++.dg/tree-ssa/pr8781.C: Likewise. * gcc.dg/ipa/ipa-pta-13.c: Likewise. * gcc.dg/ipa/ipa-pta-3.c: Likewise. * gcc.dg/ipa/ipa-pta-4.c: Likewise. * gcc.dg/tree-ssa/20041122-1.c: Likewise. * gcc.dg/tree-ssa/alias-18.c: Likewise. * gcc.dg/tree-ssa/foldstring-1.c: Likewise. * gcc.dg/tree-ssa/forwprop-10.c: Likewise. * gcc.dg/tree-ssa/forwprop-9.c: Likewise. * gcc.dg/tree-ssa/fre-vce-1.c: Likewise. * gcc.dg/tree-ssa/loadpre6.c: Likewise. * gcc.dg/tree-ssa/pr21574.c: Likewise. * gcc.dg/tree-ssa/ssa-dom-cse-1.c: Likewise. * gcc.dg/tree-ssa/ssa-fre-1.c: Likewise. * gcc.dg/tree-ssa/ssa-fre-11.c: Likewise. * gcc.dg/tree-ssa/ssa-fre-12.c: Likewise. * gcc.dg/tree-ssa/ssa-fre-13.c: Likewise. * gcc.dg/tree-ssa/ssa-fre-14.c: Likewise. * gcc.dg/tree-ssa/ssa-fre-15.c: Likewise. * gcc.dg/tree-ssa/ssa-fre-16.c: Likewise. * gcc.dg/tree-ssa/ssa-fre-17.c: Likewise. * gcc.dg/tree-ssa/ssa-fre-18.c: Likewise. * gcc.dg/tree-ssa/ssa-fre-19.c: Likewise. * gcc.dg/tree-ssa/ssa-fre-2.c: Likewise. * gcc.dg/tree-ssa/ssa-fre-21.c: Likewise. * gcc.dg/tree-ssa/ssa-fre-22.c: Likewise. * gcc.dg/tree-ssa/ssa-fre-23.c: Likewise. * gcc.dg/tree-ssa/ssa-fre-24.c: Likewise. * gcc.dg/tree-ssa/ssa-fre-25.c: Likewise. * gcc.dg/tree-ssa/ssa-fre-26.c: Likewise. * gcc.dg/tree-ssa/ssa-fre-27.c: Likewise. * gcc.dg/tree-ssa/ssa-fre-3.c: Likewise. * gcc.dg/tree-ssa/ssa-fre-4.c: Likewise. * gcc.dg/tree-ssa/ssa-fre-5.c: Likewise. * gcc.dg/tree-ssa/ssa-fre-6.c: Likewise. * gcc.dg/tree-ssa/ssa-fre-7.c: Likewise. * gcc.dg/tree-ssa/ssa-fre-8.c: Likewise. * gcc.dg/tree-ssa/ssa-fre-9.c: Likewise. * gcc.dg/tree-ssa/ssa-pre-10.c: Likewise. * gcc.dg/tree-ssa/ssa-pre-26.c: Likewise. * gcc.dg/tree-ssa/ssa-pre-7.c: Likewise. * gcc.dg/tree-ssa/ssa-pre-8.c: Likewise. * gcc.dg/tree-ssa/ssa-pre-9.c: Likewise. * gcc.dg/tree-ssa/ssa-sccvn-1.c: Likewise. * gcc.dg/tree-ssa/ssa-sccvn-2.c: Likewise. * gcc.dg/tree-ssa/ssa-sccvn-3.c: Likewise. * gcc.dg/tree-ssa/ssa-sccvn-4.c: Likewise. * gcc.dg/tree-ssa/struct-aliasing-1.c: Likewise. * gcc.dg/tree-ssa/struct-aliasing-2.c: Likewise. * c-c++-common/pr46562-2.c: Likewise. * gfortran.dg/pr42108.f90: Likewise. * gcc.dg/torture/pta-structcopy-1.c: Scan ealias dump, force foo to be inlined even at -O1. * gcc.dg/tree-ssa/ssa-dce-4.c: Disable FRE. * gcc.dg/ipa/ipa-pta-14.c: Likewise. * gcc.dg/tree-ssa/ssa-fre-1.c: Adjust. * gcc.dg/matrix/matrix.exp: Disable FRE. From-SVN: r171450 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 03e16086ae3..15b5b0c167a 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2011-03-25 Richard Guenther + + * passes.c (init_optimization_passes): Add FRE pass after + early SRA. + 2011-03-25 Bernd Schmidt Andrew Stubbs diff --git a/gcc/passes.c b/gcc/passes.c index 42a323981f7..852b655e7c6 100644 --- a/gcc/passes.c +++ b/gcc/passes.c @@ -762,6 +762,7 @@ init_optimization_passes (void) locals into SSA form if possible. */ NEXT_PASS (pass_build_ealias); NEXT_PASS (pass_sra_early); + NEXT_PASS (pass_fre); NEXT_PASS (pass_copy_prop); NEXT_PASS (pass_merge_phi); NEXT_PASS (pass_cd_dce); diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index c01c7cbc149..539fc12f790 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,64 @@ +2011-03-25 Richard Guenther + + * g++.dg/tree-ssa/pr41186.C: Scan the appropriate FRE dump. + * g++.dg/tree-ssa/pr8781.C: Likewise. + * gcc.dg/ipa/ipa-pta-13.c: Likewise. + * gcc.dg/ipa/ipa-pta-3.c: Likewise. + * gcc.dg/ipa/ipa-pta-4.c: Likewise. + * gcc.dg/tree-ssa/20041122-1.c: Likewise. + * gcc.dg/tree-ssa/alias-18.c: Likewise. + * gcc.dg/tree-ssa/foldstring-1.c: Likewise. + * gcc.dg/tree-ssa/forwprop-10.c: Likewise. + * gcc.dg/tree-ssa/forwprop-9.c: Likewise. + * gcc.dg/tree-ssa/fre-vce-1.c: Likewise. + * gcc.dg/tree-ssa/loadpre6.c: Likewise. + * gcc.dg/tree-ssa/pr21574.c: Likewise. + * gcc.dg/tree-ssa/ssa-dom-cse-1.c: Likewise. + * gcc.dg/tree-ssa/ssa-fre-1.c: Likewise. + * gcc.dg/tree-ssa/ssa-fre-11.c: Likewise. + * gcc.dg/tree-ssa/ssa-fre-12.c: Likewise. + * gcc.dg/tree-ssa/ssa-fre-13.c: Likewise. + * gcc.dg/tree-ssa/ssa-fre-14.c: Likewise. + * gcc.dg/tree-ssa/ssa-fre-15.c: Likewise. + * gcc.dg/tree-ssa/ssa-fre-16.c: Likewise. + * gcc.dg/tree-ssa/ssa-fre-17.c: Likewise. + * gcc.dg/tree-ssa/ssa-fre-18.c: Likewise. + * gcc.dg/tree-ssa/ssa-fre-19.c: Likewise. + * gcc.dg/tree-ssa/ssa-fre-2.c: Likewise. + * gcc.dg/tree-ssa/ssa-fre-21.c: Likewise. + * gcc.dg/tree-ssa/ssa-fre-22.c: Likewise. + * gcc.dg/tree-ssa/ssa-fre-23.c: Likewise. + * gcc.dg/tree-ssa/ssa-fre-24.c: Likewise. + * gcc.dg/tree-ssa/ssa-fre-25.c: Likewise. + * gcc.dg/tree-ssa/ssa-fre-26.c: Likewise. + * gcc.dg/tree-ssa/ssa-fre-27.c: Likewise. + * gcc.dg/tree-ssa/ssa-fre-3.c: Likewise. + * gcc.dg/tree-ssa/ssa-fre-4.c: Likewise. + * gcc.dg/tree-ssa/ssa-fre-5.c: Likewise. + * gcc.dg/tree-ssa/ssa-fre-6.c: Likewise. + * gcc.dg/tree-ssa/ssa-fre-7.c: Likewise. + * gcc.dg/tree-ssa/ssa-fre-8.c: Likewise. + * gcc.dg/tree-ssa/ssa-fre-9.c: Likewise. + * gcc.dg/tree-ssa/ssa-pre-10.c: Likewise. + * gcc.dg/tree-ssa/ssa-pre-26.c: Likewise. + * gcc.dg/tree-ssa/ssa-pre-7.c: Likewise. + * gcc.dg/tree-ssa/ssa-pre-8.c: Likewise. + * gcc.dg/tree-ssa/ssa-pre-9.c: Likewise. + * gcc.dg/tree-ssa/ssa-sccvn-1.c: Likewise. + * gcc.dg/tree-ssa/ssa-sccvn-2.c: Likewise. + * gcc.dg/tree-ssa/ssa-sccvn-3.c: Likewise. + * gcc.dg/tree-ssa/ssa-sccvn-4.c: Likewise. + * gcc.dg/tree-ssa/struct-aliasing-1.c: Likewise. + * gcc.dg/tree-ssa/struct-aliasing-2.c: Likewise. + * c-c++-common/pr46562-2.c: Likewise. + * gfortran.dg/pr42108.f90: Likewise. + * gcc.dg/torture/pta-structcopy-1.c: Scan ealias dump, force + foo to be inlined even at -O1. + * gcc.dg/tree-ssa/ssa-dce-4.c: Disable FRE. + * gcc.dg/ipa/ipa-pta-14.c: Likewise. + * gcc.dg/tree-ssa/ssa-fre-1.c: Adjust. + * gcc.dg/matrix/matrix.exp: Disable FRE. + 2011-03-24 Jakub Jelinek PR debug/48204 diff --git a/gcc/testsuite/c-c++-common/pr46562-2.c b/gcc/testsuite/c-c++-common/pr46562-2.c index 5415860c7a7..45bf5cf7195 100644 --- a/gcc/testsuite/c-c++-common/pr46562-2.c +++ b/gcc/testsuite/c-c++-common/pr46562-2.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-O -fno-tree-ccp -fno-tree-forwprop -fdump-tree-fre" } */ +/* { dg-options "-O -fno-tree-ccp -fno-tree-forwprop -fdump-tree-fre1" } */ static const int a[4] = {}; int foo(void) @@ -9,5 +9,5 @@ int foo(void) return *p; } -/* { dg-final { scan-tree-dump "= 0;" "fre" } } */ -/* { dg-final { cleanup-tree-dump "fre" } } */ +/* { dg-final { scan-tree-dump "= 0;" "fre1" } } */ +/* { dg-final { cleanup-tree-dump "fre1" } } */ diff --git a/gcc/testsuite/g++.dg/tree-ssa/pr41186.C b/gcc/testsuite/g++.dg/tree-ssa/pr41186.C index 91f21a8c643..8739ae9e6d5 100644 --- a/gcc/testsuite/g++.dg/tree-ssa/pr41186.C +++ b/gcc/testsuite/g++.dg/tree-ssa/pr41186.C @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-O -fdump-tree-fre-details" } */ +/* { dg-options "-O -fdump-tree-fre1-details" } */ struct Foo { Foo() {}; @@ -29,7 +29,7 @@ int main() return 0; } -/* { dg-final { scan-tree-dump "Replaced b1.b with 1" "fre" } } */ -/* { dg-final { scan-tree-dump "Replaced b1.i with 0" "fre" { xfail *-*-* } } } */ -/* { dg-final { scan-tree-dump "Replaced b1.f with 1" "fre" { xfail *-*-* } } } */ -/* { dg-final { cleanup-tree-dump "fre" } } */ +/* { dg-final { scan-tree-dump "Replaced b1.b with 1" "fre1" } } */ +/* { dg-final { scan-tree-dump "Replaced b1.i with 0" "fre1" { xfail *-*-* } } } */ +/* { dg-final { scan-tree-dump "Replaced b1.f with 1" "fre1" { xfail *-*-* } } } */ +/* { dg-final { cleanup-tree-dump "fre1" } } */ diff --git a/gcc/testsuite/g++.dg/tree-ssa/pr8781.C b/gcc/testsuite/g++.dg/tree-ssa/pr8781.C index a9d279af74e..fc5f44394d9 100644 --- a/gcc/testsuite/g++.dg/tree-ssa/pr8781.C +++ b/gcc/testsuite/g++.dg/tree-ssa/pr8781.C @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-O -fdump-tree-fre-details" } */ +/* { dg-options "-O -fdump-tree-fre1-details" } */ int f(); @@ -24,5 +24,5 @@ int x() /* We should optimize this to a direct call. */ -/* { dg-final { scan-tree-dump "Replacing call target with f" "fre" } } */ -/* { dg-final { cleanup-tree-dump "fre" } } */ +/* { dg-final { scan-tree-dump "Replacing call target with f" "fre1" } } */ +/* { dg-final { cleanup-tree-dump "fre1" } } */ diff --git a/gcc/testsuite/gcc.dg/ipa/ipa-pta-13.c b/gcc/testsuite/gcc.dg/ipa/ipa-pta-13.c index 1e04bfc2118..0f46e984bce 100644 --- a/gcc/testsuite/gcc.dg/ipa/ipa-pta-13.c +++ b/gcc/testsuite/gcc.dg/ipa/ipa-pta-13.c @@ -1,5 +1,5 @@ /* { dg-do link } */ -/* { dg-options "-O2 -fipa-pta -fdump-ipa-pta-details -fdump-tree-fre" } */ +/* { dg-options "-O2 -fipa-pta -fdump-ipa-pta-details -fdump-tree-fre2" } */ static int x, y; @@ -54,9 +54,9 @@ int main() local_address_taken (&y); /* As we are computing flow- and context-insensitive we may not CSE the load of x here. */ - /* { dg-final { scan-tree-dump " = x;" "fre" } } */ + /* { dg-final { scan-tree-dump " = x;" "fre2" } } */ return x; } /* { dg-final { cleanup-ipa-dump "pta" } } */ -/* { dg-final { cleanup-tree-dump "fre" } } */ +/* { dg-final { cleanup-tree-dump "fre2" } } */ diff --git a/gcc/testsuite/gcc.dg/ipa/ipa-pta-14.c b/gcc/testsuite/gcc.dg/ipa/ipa-pta-14.c index 074f44a6d68..e8abc3244a0 100644 --- a/gcc/testsuite/gcc.dg/ipa/ipa-pta-14.c +++ b/gcc/testsuite/gcc.dg/ipa/ipa-pta-14.c @@ -1,5 +1,5 @@ /* { dg-do run } */ -/* { dg-options "-O2 -fipa-pta -fno-tree-sra -fdump-ipa-pta-details" } */ +/* { dg-options "-O2 -fipa-pta -fno-tree-fre -fno-tree-sra -fdump-ipa-pta-details" } */ struct X { int i; diff --git a/gcc/testsuite/gcc.dg/ipa/ipa-pta-3.c b/gcc/testsuite/gcc.dg/ipa/ipa-pta-3.c index e73db1c95ac..ce9393cb072 100644 --- a/gcc/testsuite/gcc.dg/ipa/ipa-pta-3.c +++ b/gcc/testsuite/gcc.dg/ipa/ipa-pta-3.c @@ -1,5 +1,5 @@ /* { dg-do run } */ -/* { dg-options "-O2 -fipa-pta -fdump-ipa-pta-details -fdump-tree-fre-details" } */ +/* { dg-options "-O2 -fipa-pta -fdump-ipa-pta-details -fdump-tree-fre2-details" } */ static int __attribute__((noinline,noclone)) foo (int *p, int *q) @@ -23,6 +23,6 @@ int main() /* { dg-final { scan-ipa-dump "foo.arg0 = &a" "pta" } } */ /* { dg-final { scan-ipa-dump "foo.arg1 = &b" "pta" } } */ -/* { dg-final { scan-tree-dump "Replaced \\\*p_1\\\(D\\\) with 1" "fre" } } */ -/* { dg-final { cleanup-tree-dump "fre" } } */ +/* { dg-final { scan-tree-dump "Replaced \\\*p_1\\\(D\\\) with 1" "fre2" } } */ +/* { dg-final { cleanup-tree-dump "fre2" } } */ /* { dg-final { cleanup-ipa-dump "pta" } } */ diff --git a/gcc/testsuite/gcc.dg/ipa/ipa-pta-4.c b/gcc/testsuite/gcc.dg/ipa/ipa-pta-4.c index d2b901cf910..32e1e4fbc49 100644 --- a/gcc/testsuite/gcc.dg/ipa/ipa-pta-4.c +++ b/gcc/testsuite/gcc.dg/ipa/ipa-pta-4.c @@ -1,5 +1,5 @@ /* { dg-do run } */ -/* { dg-options "-O2 -fipa-pta -fdump-ipa-pta-details -fdump-tree-fre-details" } */ +/* { dg-options "-O2 -fipa-pta -fdump-ipa-pta-details -fdump-tree-fre2-details" } */ int a, b; @@ -28,6 +28,6 @@ int main() /* { dg-final { scan-ipa-dump "foo.arg0 = &a" "pta" } } */ /* { dg-final { scan-ipa-dump "foo.arg1 = &b" "pta" } } */ -/* { dg-final { scan-tree-dump "Replaced \\\*p_1\\\(D\\\) with 1" "fre" } } */ -/* { dg-final { cleanup-tree-dump "fre" } } */ +/* { dg-final { scan-tree-dump "Replaced \\\*p_1\\\(D\\\) with 1" "fre2" } } */ +/* { dg-final { cleanup-tree-dump "fre2" } } */ /* { dg-final { cleanup-ipa-dump "pta" } } */ diff --git a/gcc/testsuite/gcc.dg/matrix/matrix.exp b/gcc/testsuite/gcc.dg/matrix/matrix.exp index 961e0255e33..aae19883143 100644 --- a/gcc/testsuite/gcc.dg/matrix/matrix.exp +++ b/gcc/testsuite/gcc.dg/matrix/matrix.exp @@ -20,7 +20,7 @@ load_lib gcc-dg.exp load_lib target-supports.exp -set DEFAULT_MATCFLAGS "-O3 -fipa-matrix-reorg -fdump-ipa-matrix-reorg -fwhole-program" +set DEFAULT_MATCFLAGS "-O3 -fipa-matrix-reorg -fdump-ipa-matrix-reorg -fwhole-program -fno-tree-fre" # Initialize `dg'. dg-init @@ -52,8 +52,8 @@ load_lib profopt.exp # These are globals used by profopt-execute. The first is options # needed to generate profile data, the second is options to use the # profile data. -set profile_option "-fprofile-generate -O3" -set feedback_option "-fprofile-use -fipa-matrix-reorg -fdump-ipa-matrix-reorg -O3 -fwhole-program" +set profile_option "-fprofile-generate -O3 -fno-tree-fre" +set feedback_option "-fprofile-use -fipa-matrix-reorg -fdump-ipa-matrix-reorg -O3 -fwhole-program -fno-tree-fre" foreach src [lsort [glob -nocomplain $srcdir/$subdir/transpose-*.c]] { # If we're only testing specific files and this isn't one of them, skip it. diff --git a/gcc/testsuite/gcc.dg/torture/pta-structcopy-1.c b/gcc/testsuite/gcc.dg/torture/pta-structcopy-1.c index bdb2acb0464..5dc041b0edd 100644 --- a/gcc/testsuite/gcc.dg/torture/pta-structcopy-1.c +++ b/gcc/testsuite/gcc.dg/torture/pta-structcopy-1.c @@ -1,5 +1,5 @@ /* { dg-do run } */ -/* { dg-options "-fno-tree-sra -fdump-tree-alias" } */ +/* { dg-options "-fdump-tree-ealias" } */ /* { dg-skip-if "" { *-*-* } { "-O0" } { "" } } */ struct X @@ -12,10 +12,11 @@ struct X } y; }; int i; -static int +static int __attribute__((always_inline)) foo (struct X *x) { struct Y y = x->y; + /* In the inlined instance the dereferenced pointer needs to point to i. */ *y.p = 0; i = 1; return *y.p; @@ -30,5 +31,5 @@ int main() return 0; } -/* { dg-final { scan-tree-dump "points-to vars: { i }" "alias" } } */ -/* { dg-final { cleanup-tree-dump "alias" } } */ +/* { dg-final { scan-tree-dump "points-to vars: { i }" "ealias" } } */ +/* { dg-final { cleanup-tree-dump "ealias" } } */ diff --git a/gcc/testsuite/gcc.dg/tree-ssa/20041122-1.c b/gcc/testsuite/gcc.dg/tree-ssa/20041122-1.c index 6007949546e..5e6828b6f4f 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/20041122-1.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/20041122-1.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-O1 -fstrict-aliasing -fdump-tree-fre" } */ +/* { dg-options "-O1 -fstrict-aliasing -fdump-tree-fre1" } */ __extension__ typedef __SIZE_TYPE__ size_t; extern void *xmalloc (size_t) __attribute__ ((__malloc__)); @@ -34,5 +34,5 @@ find_unreachable_blocks (void) able to determine that modifying e->dest->flags does not modify e or e->dest if we can assert strict-aliasing rules. The net result is that we only need one load of e->dest. */ -/* { dg-final { scan-tree-dump-times "->dest" 1 "fre" } } */ -/* { dg-final { cleanup-tree-dump "fre" } } */ +/* { dg-final { scan-tree-dump-times "->dest" 1 "fre1" } } */ +/* { dg-final { cleanup-tree-dump "fre1" } } */ diff --git a/gcc/testsuite/gcc.dg/tree-ssa/alias-18.c b/gcc/testsuite/gcc.dg/tree-ssa/alias-18.c index e86acbc1900..69c2e23c915 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/alias-18.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/alias-18.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-O2 -fdump-tree-fre-details -fdump-tree-optimized" } */ +/* { dg-options "-O2 -fdump-tree-fre1-details -fdump-tree-optimized" } */ struct A { int i; @@ -76,15 +76,15 @@ int test8 (struct A *p, int *q) return *q; } -/* { dg-final { scan-tree-dump "with 0" "fre" } } */ -/* { dg-final { scan-tree-dump "with 1" "fre" } } */ -/* { dg-final { scan-tree-dump "with 3" "fre" } } */ -/* { dg-final { scan-tree-dump "with 4" "fre" } } */ -/* { dg-final { scan-tree-dump "with 5" "fre" } } */ -/* { dg-final { scan-tree-dump "with 8" "fre" } } */ +/* { dg-final { scan-tree-dump "with 0" "fre1" } } */ +/* { dg-final { scan-tree-dump "with 1" "fre1" } } */ +/* { dg-final { scan-tree-dump "with 3" "fre1" } } */ +/* { dg-final { scan-tree-dump "with 4" "fre1" } } */ +/* { dg-final { scan-tree-dump "with 5" "fre1" } } */ +/* { dg-final { scan-tree-dump "with 8" "fre1" } } */ /* { dg-final { scan-tree-dump-not "return 2;" "optimized" } } */ /* { dg-final { scan-tree-dump-not "return 6;" "optimized" } } */ /* { dg-final { scan-tree-dump-not "return 7;" "optimized" } } */ /* { dg-final { scan-tree-dump-not "return -1;" "optimized" } } */ -/* { dg-final { cleanup-tree-dump "fre" } } */ +/* { dg-final { cleanup-tree-dump "fre1" } } */ /* { dg-final { cleanup-tree-dump "optimized" } } */ diff --git a/gcc/testsuite/gcc.dg/tree-ssa/foldstring-1.c b/gcc/testsuite/gcc.dg/tree-ssa/foldstring-1.c index fa64ae14cc4..3cfe44d1bd2 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/foldstring-1.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/foldstring-1.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-O1 -fdump-tree-fre" } */ +/* { dg-options "-O1 -fdump-tree-fre1" } */ void arf () @@ -7,5 +7,5 @@ arf () if (""[0] == 0) blah (); } -/* { dg-final { scan-tree-dump-times "= 0;" 1 "fre"} } */ -/* { dg-final { cleanup-tree-dump "fre" } } */ +/* { dg-final { scan-tree-dump-times "= 0;" 1 "fre1"} } */ +/* { dg-final { cleanup-tree-dump "fre1" } } */ diff --git a/gcc/testsuite/gcc.dg/tree-ssa/forwprop-10.c b/gcc/testsuite/gcc.dg/tree-ssa/forwprop-10.c index b46b8ece816..5ca8060c8b3 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/forwprop-10.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/forwprop-10.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-O -fdump-tree-fre-details" } */ +/* { dg-options "-O -fdump-tree-fre1-details" } */ int b; unsigned a; @@ -18,5 +18,5 @@ void test2(void) conversion to int. FRE should then be able to replace the rhs of the store to b by 1. */ -/* { dg-final { scan-tree-dump "Replaced\[^\\n\]*with 1" "fre" } } */ -/* { dg-final { cleanup-tree-dump "fre" } } */ +/* { dg-final { scan-tree-dump "Replaced\[^\\n\]*with 1" "fre1" } } */ +/* { dg-final { cleanup-tree-dump "fre1" } } */ diff --git a/gcc/testsuite/gcc.dg/tree-ssa/forwprop-9.c b/gcc/testsuite/gcc.dg/tree-ssa/forwprop-9.c index cc583e293f8..d02a62d3d34 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/forwprop-9.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/forwprop-9.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-O1 -fdump-tree-optimized -fdump-tree-fre -W -Wall -fno-early-inlining" } */ +/* { dg-options "-O1 -fdump-tree-optimized -fdump-tree-fre1 -W -Wall -fno-early-inlining" } */ int b; unsigned a; @@ -16,6 +16,6 @@ void f(void) /* We should have converted the assignments to two = 1. FRE does this. */ /* { dg-final { scan-tree-dump-times " = 1" 2 "optimized"} } */ -/* { dg-final { scan-tree-dump-not " = a;" "fre"} } */ -/* { dg-final { cleanup-tree-dump "fre" } } */ +/* { dg-final { scan-tree-dump-not " = a;" "fre1"} } */ +/* { dg-final { cleanup-tree-dump "fre1" } } */ /* { dg-final { cleanup-tree-dump "optimized" } } */ diff --git a/gcc/testsuite/gcc.dg/tree-ssa/fre-vce-1.c b/gcc/testsuite/gcc.dg/tree-ssa/fre-vce-1.c index 599d1f1efd5..c6c142b4eaf 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/fre-vce-1.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/fre-vce-1.c @@ -1,5 +1,5 @@ -/* { dg-options "-O2 -fdump-tree-fre -w" } */ -/* { dg-options "-O2 -fdump-tree-fre -w -msse" { target { i?86-*-* x86_64-*-* } } } */ +/* { dg-options "-O2 -fdump-tree-fre1 -w" } */ +/* { dg-options "-O2 -fdump-tree-fre1 -w -msse" { target { i?86-*-* x86_64-*-* } } } */ /* { dg-do compile } */ #define vector __attribute__((vector_size(sizeof(int)*4) )) struct s { vector int i; }; @@ -32,6 +32,6 @@ void a2 (struct s1 sv, int i) g(&sv, *(float*)&sv.i); } -/* { dg-final { scan-tree-dump-times "sv_\[0-9\]\\\(D\\\)->i" 2 "fre" } } */ -/* { dg-final { scan-tree-dump-times "sv.i" 2 "fre" } } */ -/* { dg-final { cleanup-tree-dump "fre" } } */ +/* { dg-final { scan-tree-dump-times "sv_\[0-9\]\\\(D\\\)->i" 2 "fre1" } } */ +/* { dg-final { scan-tree-dump-times "sv.i" 2 "fre1" } } */ +/* { dg-final { cleanup-tree-dump "fre1" } } */ diff --git a/gcc/testsuite/gcc.dg/tree-ssa/loadpre6.c b/gcc/testsuite/gcc.dg/tree-ssa/loadpre6.c index e6130bbe7bd..6fc2a57a9f2 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/loadpre6.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/loadpre6.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-O2 -fdump-tree-pre-stats -fdump-tree-fre" } */ +/* { dg-options "-O2 -fdump-tree-pre-stats -fdump-tree-fre1" } */ #include union tree_node; @@ -73,8 +73,8 @@ main (void) return 0; } -/* { dg-final { scan-tree-dump-not "= unexpanded_var_list;" "fre" } } */ +/* { dg-final { scan-tree-dump-not "= unexpanded_var_list;" "fre1" } } */ /* { dg-final { scan-tree-dump-times "Eliminated: 1" 1 "pre" } } */ /* { dg-final { scan-tree-dump-times "Insertions: 2" 1 "pre" } } */ -/* { dg-final { cleanup-tree-dump "fre" } } */ +/* { dg-final { cleanup-tree-dump "fre1" } } */ /* { dg-final { cleanup-tree-dump "pre" } } */ diff --git a/gcc/testsuite/gcc.dg/tree-ssa/pr21574.c b/gcc/testsuite/gcc.dg/tree-ssa/pr21574.c index fc33d74e9ff..dcfa131510c 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/pr21574.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/pr21574.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-O -fdump-tree-fre-details" } */ +/* { dg-options "-O -fdump-tree-fre1-details" } */ int foo (int *p) @@ -9,5 +9,5 @@ foo (int *p) } /* The store to *p should be propagated to the load statement. */ -/* { dg-final { scan-tree-dump "Replaced \\\*p_.\\\(D\\\) with 0" "fre" } } */ -/* { dg-final { cleanup-tree-dump "fre" } } */ +/* { dg-final { scan-tree-dump "Replaced \\\*p_.\\\(D\\\) with 0" "fre1" } } */ +/* { dg-final { cleanup-tree-dump "fre1" } } */ diff --git a/gcc/testsuite/gcc.dg/tree-ssa/ssa-dce-4.c b/gcc/testsuite/gcc.dg/tree-ssa/ssa-dce-4.c index 89118a62621..261880cc240 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/ssa-dce-4.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/ssa-dce-4.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-O -fdump-tree-cddce1" } */ +/* { dg-options "-O -fno-tree-fre -fdump-tree-cddce1" } */ int foo(int b) { @@ -14,5 +14,7 @@ int foo(int b) return a[2] + b; } +/* Verify DCE removes all accesses to a but the last store and the + read from a[2]. */ /* { dg-final { scan-tree-dump-times "a\\\[\[^\n\]\\\]" 2 "cddce1" } } */ /* { dg-final { cleanup-tree-dump "cddce1" } } */ diff --git a/gcc/testsuite/gcc.dg/tree-ssa/ssa-dom-cse-1.c b/gcc/testsuite/gcc.dg/tree-ssa/ssa-dom-cse-1.c index 5bbfd3d17fb..70a905819cd 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/ssa-dom-cse-1.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/ssa-dom-cse-1.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-O2 -fdump-tree-fre-details" } */ +/* { dg-options "-O2 -fdump-tree-fre1-details" } */ int t(int a) __attribute__ ((const)); void q (void); void @@ -12,5 +12,5 @@ threading(int a,int b) } } /* We should thread the jump twice and eliminate it. */ -/* { dg-final { scan-tree-dump-times "Replaced.* t " 1 "fre"} } */ -/* { dg-final { cleanup-tree-dump "fre" } } */ +/* { dg-final { scan-tree-dump-times "Replaced.* t " 1 "fre1"} } */ +/* { dg-final { cleanup-tree-dump "fre1" } } */ diff --git a/gcc/testsuite/gcc.dg/tree-ssa/ssa-fre-1.c b/gcc/testsuite/gcc.dg/tree-ssa/ssa-fre-1.c index b9ec6bc720f..2c859d5e850 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/ssa-fre-1.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/ssa-fre-1.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-O -fdump-tree-fre-details" } */ +/* { dg-options "-O -fdump-tree-fre1-details" } */ /* From PR27090. */ @@ -11,5 +11,5 @@ int f(int *a) return *c + t; } -/* { dg-final { scan-tree-dump "Replaced \\\*a_\[^\n\].*with t_" "fre" } } */ -/* { dg-final { cleanup-tree-dump "fre" } } */ +/* { dg-final { scan-tree-dump "Replaced \\\*c_\[^\n\].*with t_" "fre1" } } */ +/* { dg-final { cleanup-tree-dump "fre1" } } */ diff --git a/gcc/testsuite/gcc.dg/tree-ssa/ssa-fre-11.c b/gcc/testsuite/gcc.dg/tree-ssa/ssa-fre-11.c index 50bb5d96066..7bef07caff6 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/ssa-fre-11.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/ssa-fre-11.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-O -fdump-tree-fre-details" } */ +/* { dg-options "-O -fdump-tree-fre1-details" } */ struct { @@ -22,5 +22,5 @@ foo (int y) return (x); } -/* { dg-final { scan-tree-dump "Replaced S\\\[5\\\].x with 4" "fre" } } */ -/* { dg-final { cleanup-tree-dump "fre" } } */ +/* { dg-final { scan-tree-dump "Replaced S\\\[5\\\].x with 4" "fre1" } } */ +/* { dg-final { cleanup-tree-dump "fre1" } } */ diff --git a/gcc/testsuite/gcc.dg/tree-ssa/ssa-fre-12.c b/gcc/testsuite/gcc.dg/tree-ssa/ssa-fre-12.c index 50bb5d96066..7bef07caff6 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/ssa-fre-12.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/ssa-fre-12.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-O -fdump-tree-fre-details" } */ +/* { dg-options "-O -fdump-tree-fre1-details" } */ struct { @@ -22,5 +22,5 @@ foo (int y) return (x); } -/* { dg-final { scan-tree-dump "Replaced S\\\[5\\\].x with 4" "fre" } } */ -/* { dg-final { cleanup-tree-dump "fre" } } */ +/* { dg-final { scan-tree-dump "Replaced S\\\[5\\\].x with 4" "fre1" } } */ +/* { dg-final { cleanup-tree-dump "fre1" } } */ diff --git a/gcc/testsuite/gcc.dg/tree-ssa/ssa-fre-13.c b/gcc/testsuite/gcc.dg/tree-ssa/ssa-fre-13.c index 972e6c69ef9..cfb72b8bcc5 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/ssa-fre-13.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/ssa-fre-13.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-O -fstrict-aliasing -fno-tree-sra -fdump-tree-fre-details" } */ +/* { dg-options "-O -fstrict-aliasing -fno-tree-sra -fdump-tree-fre1-details" } */ /* Should be optimized, propagating &a into (*p)[i]. */ @@ -23,5 +23,5 @@ void foo(double (*q)[4], struct Foo *tmp1) } } -/* { dg-final { scan-tree-dump "Replaced tmp1_.\\\(D\\\)->data with &a" "fre" } } */ -/* { dg-final { cleanup-tree-dump "fre" } } */ +/* { dg-final { scan-tree-dump "Replaced tmp1_.\\\(D\\\)->data with &a" "fre1" } } */ +/* { dg-final { cleanup-tree-dump "fre1" } } */ diff --git a/gcc/testsuite/gcc.dg/tree-ssa/ssa-fre-14.c b/gcc/testsuite/gcc.dg/tree-ssa/ssa-fre-14.c index 9d1b3f2ba92..2b677d5b598 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/ssa-fre-14.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/ssa-fre-14.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-O -fno-tree-sra -fdump-tree-fre-details" } */ +/* { dg-options "-O -fno-tree-sra -fdump-tree-fre1-details" } */ /* Should be optimized, propagating &a into (*p)[i]. */ @@ -27,5 +27,5 @@ void foo(double (*q)[4]) bar(a); } -/* { dg-final { scan-tree-dump "Replaced tmp1.data with &a" "fre" } } */ -/* { dg-final { cleanup-tree-dump "fre" } } */ +/* { dg-final { scan-tree-dump "Replaced tmp1.data with &a" "fre1" } } */ +/* { dg-final { cleanup-tree-dump "fre1" } } */ diff --git a/gcc/testsuite/gcc.dg/tree-ssa/ssa-fre-15.c b/gcc/testsuite/gcc.dg/tree-ssa/ssa-fre-15.c index d24cd1e4c38..f24d0f6ab64 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/ssa-fre-15.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/ssa-fre-15.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-O -fno-tree-sra -fdump-tree-fre-details" } */ +/* { dg-options "-O -fno-tree-sra -fdump-tree-fre1-details" } */ /* Should be optimized, propagating &a into (*p)[i]. */ @@ -26,5 +26,5 @@ void foo(double (*q)[4]) bar(a); } -/* { dg-final { scan-tree-dump "Replaced" "fre" } } */ -/* { dg-final { cleanup-tree-dump "fre" } } */ +/* { dg-final { scan-tree-dump "Replaced" "fre1" } } */ +/* { dg-final { cleanup-tree-dump "fre1" } } */ diff --git a/gcc/testsuite/gcc.dg/tree-ssa/ssa-fre-16.c b/gcc/testsuite/gcc.dg/tree-ssa/ssa-fre-16.c index 56d85e58e7f..fa5f3719a25 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/ssa-fre-16.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/ssa-fre-16.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-O -fdump-tree-fre" } */ +/* { dg-options "-O -fdump-tree-fre1" } */ /* FRE should be able to combine i and j and perform simplification on the condition. */ @@ -14,5 +14,5 @@ int foo(int b, int c) link_error (); } -/* { dg-final { scan-tree-dump-not "link_error" "fre" } } */ -/* { dg-final { cleanup-tree-dump "fre" } } */ +/* { dg-final { scan-tree-dump-not "link_error" "fre1" } } */ +/* { dg-final { cleanup-tree-dump "fre1" } } */ diff --git a/gcc/testsuite/gcc.dg/tree-ssa/ssa-fre-17.c b/gcc/testsuite/gcc.dg/tree-ssa/ssa-fre-17.c index aced64977ea..01f57ed7e5c 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/ssa-fre-17.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/ssa-fre-17.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-O -fdump-tree-fre-details -fno-tree-sra" } */ +/* { dg-options "-O -fdump-tree-fre1-details -fno-tree-sra" } */ struct Bar { int dom; @@ -18,6 +18,6 @@ int foo(int i, int j, int k) return f.doms[0LL].dom; } -/* { dg-final { scan-tree-dump "Replaced f.doms\\\[0\\\].dom with i_" "fre" } } */ -/* { dg-final { cleanup-tree-dump "fre" } } */ +/* { dg-final { scan-tree-dump "Replaced f.doms\\\[0\\\].dom with i_" "fre1" } } */ +/* { dg-final { cleanup-tree-dump "fre1" } } */ diff --git a/gcc/testsuite/gcc.dg/tree-ssa/ssa-fre-18.c b/gcc/testsuite/gcc.dg/tree-ssa/ssa-fre-18.c index 392b1f6cf7d..986fe0781ae 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/ssa-fre-18.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/ssa-fre-18.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-O -fdump-tree-fre" } */ +/* { dg-options "-O -fdump-tree-fre1" } */ struct a { @@ -24,5 +24,5 @@ int f(struct a *c) /* We should have CSEd the load from c->a. */ -/* { dg-final { scan-tree-dump-times "c_.*\\\.a" 1 "fre" } } */ -/* { dg-final { cleanup-tree-dump "fre" } } */ +/* { dg-final { scan-tree-dump-times "c_.*\\\.a" 1 "fre1" } } */ +/* { dg-final { cleanup-tree-dump "fre1" } } */ diff --git a/gcc/testsuite/gcc.dg/tree-ssa/ssa-fre-19.c b/gcc/testsuite/gcc.dg/tree-ssa/ssa-fre-19.c index 688fe86403e..c121832de63 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/ssa-fre-19.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/ssa-fre-19.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-O -fdump-tree-fre" } */ +/* { dg-options "-O -fdump-tree-fre1" } */ struct a { @@ -27,5 +27,5 @@ int f(struct a *c) /* We should have CSEd the load from c->a. */ -/* { dg-final { scan-tree-dump-times "c_.*\\\.a" 1 "fre" } } */ -/* { dg-final { cleanup-tree-dump "fre" } } */ +/* { dg-final { scan-tree-dump-times "c_.*\\\.a" 1 "fre1" } } */ +/* { dg-final { cleanup-tree-dump "fre1" } } */ diff --git a/gcc/testsuite/gcc.dg/tree-ssa/ssa-fre-2.c b/gcc/testsuite/gcc.dg/tree-ssa/ssa-fre-2.c index d1eabf69bae..9bf9525d502 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/ssa-fre-2.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/ssa-fre-2.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-O -fdump-tree-fre-details" } */ +/* { dg-options "-O -fdump-tree-fre1-details" } */ /* From PR14287. */ @@ -14,5 +14,5 @@ foo (long a) h = c; } -/* { dg-final { scan-tree-dump "Replaced \\\(short int\\\) c_.*with b_" "fre" } } */ -/* { dg-final { cleanup-tree-dump "fre" } } */ +/* { dg-final { scan-tree-dump "Replaced \\\(short int\\\) c_.*with b_" "fre1" } } */ +/* { dg-final { cleanup-tree-dump "fre1" } } */ diff --git a/gcc/testsuite/gcc.dg/tree-ssa/ssa-fre-21.c b/gcc/testsuite/gcc.dg/tree-ssa/ssa-fre-21.c index aadf32e21bd..219c0a926a6 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/ssa-fre-21.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/ssa-fre-21.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-O -fdump-tree-fre" } */ +/* { dg-options "-O -fdump-tree-fre1" } */ struct f { float a; @@ -22,5 +22,5 @@ void g(void) h(a1, b, c, d); } -/* { dg-final { scan-tree-dump-not "a\\\.? = " "fre" } } */ -/* { dg-final { cleanup-tree-dump "fre" } } */ +/* { dg-final { scan-tree-dump-not "a\\\.? = " "fre1" } } */ +/* { dg-final { cleanup-tree-dump "fre1" } } */ diff --git a/gcc/testsuite/gcc.dg/tree-ssa/ssa-fre-22.c b/gcc/testsuite/gcc.dg/tree-ssa/ssa-fre-22.c index ce311b68b9e..3504d1041e9 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/ssa-fre-22.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/ssa-fre-22.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-O -fdump-tree-fre" } */ +/* { dg-options "-O -fdump-tree-fre1" } */ int i; int foo (void) @@ -11,5 +11,5 @@ int foo (void) /* We should eliminate the redundant load of i. */ -/* { dg-final { scan-tree-dump-not "= i;" "fre" } } */ -/* { dg-final { cleanup-tree-dump "fre" } } */ +/* { dg-final { scan-tree-dump-not "= i;" "fre1" } } */ +/* { dg-final { cleanup-tree-dump "fre1" } } */ diff --git a/gcc/testsuite/gcc.dg/tree-ssa/ssa-fre-23.c b/gcc/testsuite/gcc.dg/tree-ssa/ssa-fre-23.c index 491836d28ef..f21360824cd 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/ssa-fre-23.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/ssa-fre-23.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-O -fdump-tree-fre" } */ +/* { dg-options "-O -fdump-tree-fre1" } */ int f(int t, int a, int b) { @@ -17,5 +17,5 @@ int f(int t, int a, int b) return c+d; } -/* { dg-final { scan-tree-dump-times "PHI" 1 "fre" } } */ -/* { dg-final { cleanup-tree-dump "fre" } } */ +/* { dg-final { scan-tree-dump-times "PHI" 1 "fre1" } } */ +/* { dg-final { cleanup-tree-dump "fre1" } } */ diff --git a/gcc/testsuite/gcc.dg/tree-ssa/ssa-fre-24.c b/gcc/testsuite/gcc.dg/tree-ssa/ssa-fre-24.c index 705993a4fb3..c683218799d 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/ssa-fre-24.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/ssa-fre-24.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-O -fno-tree-sra -fdump-tree-fre" } */ +/* { dg-options "-O -fno-tree-sra -fdump-tree-fre1" } */ int foo(void) { @@ -30,5 +30,5 @@ int bazzoo (void) return b.i; } -/* { dg-final { scan-tree-dump-times "= 0;" 5 "fre" } } */ -/* { dg-final { cleanup-tree-dump "fre" } } */ +/* { dg-final { scan-tree-dump-times "= 0;" 5 "fre1" } } */ +/* { dg-final { cleanup-tree-dump "fre1" } } */ diff --git a/gcc/testsuite/gcc.dg/tree-ssa/ssa-fre-25.c b/gcc/testsuite/gcc.dg/tree-ssa/ssa-fre-25.c index f7f99bf74f5..e7723f9bc35 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/ssa-fre-25.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/ssa-fre-25.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-O -fno-tree-sra -fdump-tree-fre" } */ +/* { dg-options "-O -fno-tree-sra -fdump-tree-fre1" } */ struct X { int i; int j; }; void bar (struct X *); @@ -14,5 +14,5 @@ int foo (struct X *p) /* We should optimize this to return 0. */ -/* { dg-final { scan-tree-dump "= 0;" "fre" } } */ -/* { dg-final { cleanup-tree-dump "fre" } } */ +/* { dg-final { scan-tree-dump "= 0;" "fre1" } } */ +/* { dg-final { cleanup-tree-dump "fre1" } } */ diff --git a/gcc/testsuite/gcc.dg/tree-ssa/ssa-fre-26.c b/gcc/testsuite/gcc.dg/tree-ssa/ssa-fre-26.c index 2b8e8e063d4..81d9ea0fa8e 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/ssa-fre-26.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/ssa-fre-26.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-O -fno-tree-sra -fdump-tree-fre-details" } */ +/* { dg-options "-O -fno-tree-sra -fdump-tree-fre1-details" } */ union U { float f; @@ -15,5 +15,5 @@ int foo (union U *p) } /* avr has 16 bit int and 32 bit float */ -/* { dg-final { scan-tree-dump "Replaced u.i with 0 in" "fre" {xfail avr-*-* } } } */ -/* { dg-final { cleanup-tree-dump "fre" } } */ +/* { dg-final { scan-tree-dump "Replaced u.i with 0 in" "fre1" {xfail avr-*-* } } } */ +/* { dg-final { cleanup-tree-dump "fre1" } } */ diff --git a/gcc/testsuite/gcc.dg/tree-ssa/ssa-fre-27.c b/gcc/testsuite/gcc.dg/tree-ssa/ssa-fre-27.c index 39368707ce9..ba0710171f2 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/ssa-fre-27.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/ssa-fre-27.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-O -fdump-tree-fre-details" } */ +/* { dg-options "-O -fdump-tree-fre1-details" } */ int *q; void __attribute__((noinline)) @@ -21,5 +21,5 @@ int foo(int which_p) return x; } -/* { dg-final { scan-tree-dump "Replaced x with 0" "fre" } } */ -/* { dg-final { cleanup-tree-dump "fre" } } */ +/* { dg-final { scan-tree-dump "Replaced x with 0" "fre1" } } */ +/* { dg-final { cleanup-tree-dump "fre1" } } */ diff --git a/gcc/testsuite/gcc.dg/tree-ssa/ssa-fre-3.c b/gcc/testsuite/gcc.dg/tree-ssa/ssa-fre-3.c index 85e444886d0..e68c9eb7bc4 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/ssa-fre-3.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/ssa-fre-3.c @@ -6,7 +6,7 @@ When the condition is true, we distribute "(int) (a + b)" as "(int) a + (int) b", otherwise we keep the original. */ /* { dg-do compile { target { { ! mips64 } && { ! spu-*-* } } } } */ -/* { dg-options "-O -fwrapv -fdump-tree-fre-details" } */ +/* { dg-options "-O -fwrapv -fdump-tree-fre1-details" } */ /* From PR14844. */ @@ -18,5 +18,5 @@ foo (int a, int b) return aa + bb; } -/* { dg-final { scan-tree-dump "Replaced \\\(int\\\) aa_.*with a_" "fre" } } */ -/* { dg-final { cleanup-tree-dump "fre" } } */ +/* { dg-final { scan-tree-dump "Replaced \\\(int\\\) aa_.*with a_" "fre1" } } */ +/* { dg-final { cleanup-tree-dump "fre1" } } */ diff --git a/gcc/testsuite/gcc.dg/tree-ssa/ssa-fre-4.c b/gcc/testsuite/gcc.dg/tree-ssa/ssa-fre-4.c index ca8d4c96bb7..b69b3f654d1 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/ssa-fre-4.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/ssa-fre-4.c @@ -1,7 +1,7 @@ /* If the target returns false for TARGET_PROMOTE_PROTOTYPES, then there will be no casts for FRE to eliminate and the test will fail. */ /* { dg-do compile { target i?86-*-* x86_64-*-* hppa*-*-* mips*-*-* m68k*-*-* } } */ -/* { dg-options "-O -fdump-tree-fre-details" } */ +/* { dg-options "-O -fdump-tree-fre1-details" } */ /* From PR21608. */ @@ -11,5 +11,5 @@ char bar(char f) return wrap(f); } -/* { dg-final { scan-tree-dump "Replaced \\\(char\\\) .*with " "fre" } } */ -/* { dg-final { cleanup-tree-dump "fre" } } */ +/* { dg-final { scan-tree-dump "Replaced \\\(char\\\) .*with " "fre1" } } */ +/* { dg-final { cleanup-tree-dump "fre1" } } */ diff --git a/gcc/testsuite/gcc.dg/tree-ssa/ssa-fre-5.c b/gcc/testsuite/gcc.dg/tree-ssa/ssa-fre-5.c index 7ef20c2214d..2685d91b12e 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/ssa-fre-5.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/ssa-fre-5.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-O -fdump-tree-fre-details" } */ +/* { dg-options "-O -fdump-tree-fre1-details" } */ /* From PR19792. */ @@ -10,5 +10,5 @@ bar (unsigned int t) return a == t; } -/* { dg-final { scan-tree-dump "Replaced \\\(unsigned int\\\) a_.*with t_" "fre" } } */ -/* { dg-final { cleanup-tree-dump "fre" } } */ +/* { dg-final { scan-tree-dump "Replaced \\\(unsigned int\\\) a_.*with t_" "fre1" } } */ +/* { dg-final { cleanup-tree-dump "fre1" } } */ diff --git a/gcc/testsuite/gcc.dg/tree-ssa/ssa-fre-6.c b/gcc/testsuite/gcc.dg/tree-ssa/ssa-fre-6.c index 6963c1ce483..65883cd14bd 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/ssa-fre-6.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/ssa-fre-6.c @@ -1,6 +1,6 @@ /* { dg-do compile } */ -/* { dg-options "-O -fdump-tree-fre-details" } */ +/* { dg-options "-O -fdump-tree-fre1-details" } */ int i; int foo(void) { i = 2; int j = i * 2; int k = i + 2; return j == k; } -/* { dg-final { scan-tree-dump-times "Replaced " 5 "fre" } } */ -/* { dg-final { cleanup-tree-dump "fre" } } */ +/* { dg-final { scan-tree-dump-times "Replaced " 5 "fre1" } } */ +/* { dg-final { cleanup-tree-dump "fre1" } } */ diff --git a/gcc/testsuite/gcc.dg/tree-ssa/ssa-fre-7.c b/gcc/testsuite/gcc.dg/tree-ssa/ssa-fre-7.c index 895c05fdf91..a758efe5dda 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/ssa-fre-7.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/ssa-fre-7.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-O -fno-tree-sra -fdump-tree-fre-details -fdump-tree-optimized" } */ +/* { dg-options "-O -fno-tree-sra -fdump-tree-fre1-details -fdump-tree-optimized" } */ #if (__SIZEOF_INT__ == __SIZEOF_FLOAT__) typedef int intflt; #elif (__SIZEOF_LONG__ == __SIZEOF_FLOAT__) @@ -29,10 +29,10 @@ intflt foo(intflt j) return a.u.k; } -/* { dg-final { scan-tree-dump-times "Inserted pretmp" 1 "fre" } } */ -/* { dg-final { scan-tree-dump-times "Replaced a.u.f with pretmp" 3 "fre" } } */ -/* { dg-final { scan-tree-dump-times "Replaced a.u.k with j" 1 "fre" } } */ -/* { dg-final { scan-tree-dump "= VIEW_CONVERT_EXPR\\\(j_" "fre" } } */ +/* { dg-final { scan-tree-dump-times "Inserted pretmp" 1 "fre1" } } */ +/* { dg-final { scan-tree-dump-times "Replaced a.u.f with pretmp" 3 "fre1" } } */ +/* { dg-final { scan-tree-dump-times "Replaced a.u.k with j" 1 "fre1" } } */ +/* { dg-final { scan-tree-dump "= VIEW_CONVERT_EXPR\\\(j_" "fre1" } } */ /* { dg-final { scan-tree-dump "return j" "optimized" } } */ -/* { dg-final { cleanup-tree-dump "fre" } } */ +/* { dg-final { cleanup-tree-dump "fre1" } } */ /* { dg-final { cleanup-tree-dump "optimized" } } */ diff --git a/gcc/testsuite/gcc.dg/tree-ssa/ssa-fre-8.c b/gcc/testsuite/gcc.dg/tree-ssa/ssa-fre-8.c index bc9f8e3992e..d6ab2ef247f 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/ssa-fre-8.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/ssa-fre-8.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-O -fno-tree-sra -fdump-tree-fre-details" } */ +/* { dg-options "-O -fno-tree-sra -fdump-tree-fre1-details" } */ #if (__SIZEOF_INT__ == __SIZEOF_FLOAT__) typedef int intflt; #elif (__SIZEOF_LONG__ == __SIZEOF_FLOAT__) @@ -28,6 +28,6 @@ intflt foo(int i, int b) } } -/* { dg-final { scan-tree-dump-times "Replaced u.f with pretmp" 2 "fre" } } */ -/* { dg-final { scan-tree-dump-times "Inserted pretmp" 2 "fre" } } */ -/* { dg-final { cleanup-tree-dump "fre" } } */ +/* { dg-final { scan-tree-dump-times "Replaced u.f with pretmp" 2 "fre1" } } */ +/* { dg-final { scan-tree-dump-times "Inserted pretmp" 2 "fre1" } } */ +/* { dg-final { cleanup-tree-dump "fre1" } } */ diff --git a/gcc/testsuite/gcc.dg/tree-ssa/ssa-fre-9.c b/gcc/testsuite/gcc.dg/tree-ssa/ssa-fre-9.c index c8a434a2bba..57c6d4b5be7 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/ssa-fre-9.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/ssa-fre-9.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-O -fno-tree-sra -fdump-tree-fre-stats" } */ +/* { dg-options "-O -fno-tree-sra -fdump-tree-fre1-stats" } */ union loc { unsigned reg; @@ -23,6 +23,6 @@ void __frame_state_for1 (volatile char *state_in) } } -/* { dg-final { scan-tree-dump-times "Eliminated: 1" 2 "fre" } } */ -/* { dg-final { scan-tree-dump-times "Insertions: 1" 2 "fre" } } */ -/* { dg-final { cleanup-tree-dump "fre" } } */ +/* { dg-final { scan-tree-dump-times "Eliminated: 1" 2 "fre1" } } */ +/* { dg-final { scan-tree-dump-times "Insertions: 1" 2 "fre1" } } */ +/* { dg-final { cleanup-tree-dump "fre1" } } */ diff --git a/gcc/testsuite/gcc.dg/tree-ssa/ssa-pre-10.c b/gcc/testsuite/gcc.dg/tree-ssa/ssa-pre-10.c index 41af344989a..8cb1bebde43 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/ssa-pre-10.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/ssa-pre-10.c @@ -1,6 +1,6 @@ /* { dg-do compile } */ -/* { dg-options "-O2 -fno-tree-dominator-opts -fdump-tree-fre-stats" } */ -/* { dg-options "-O2 -fno-tree-dominator-opts -fdump-tree-fre-stats -fno-finite-math-only" { target sh*-*-* } } */ +/* { dg-options "-O2 -fno-tree-dominator-opts -fdump-tree-fre1-stats" } */ +/* { dg-options "-O2 -fno-tree-dominator-opts -fdump-tree-fre1-stats -fno-finite-math-only" { target sh*-*-* } } */ double cos (double); void link_error(); void f(double a) @@ -11,5 +11,5 @@ void f(double a) link_error(); } -/* { dg-final { scan-tree-dump-times "Eliminated: 1" 1 "fre"} } */ -/* { dg-final { cleanup-tree-dump "fre" } } */ +/* { dg-final { scan-tree-dump-times "Eliminated: 1" 1 "fre1"} } */ +/* { dg-final { cleanup-tree-dump "fre1" } } */ diff --git a/gcc/testsuite/gcc.dg/tree-ssa/ssa-pre-26.c b/gcc/testsuite/gcc.dg/tree-ssa/ssa-pre-26.c index b986bdd92a9..7342c3361a8 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/ssa-pre-26.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/ssa-pre-26.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-O -fdump-tree-fre-details" } */ +/* { dg-options "-O -fdump-tree-fre1-details" } */ typedef union { @@ -23,5 +23,5 @@ void foo(SA* pResult, SB* method, SC* self) pResult->data = pResult->data; } -/* { dg-final { scan-tree-dump "Deleted redundant store" "fre" } } */ -/* { dg-final { cleanup-tree-dump "fre" } } */ +/* { dg-final { scan-tree-dump "Deleted redundant store" "fre1" } } */ +/* { dg-final { cleanup-tree-dump "fre1" } } */ diff --git a/gcc/testsuite/gcc.dg/tree-ssa/ssa-pre-7.c b/gcc/testsuite/gcc.dg/tree-ssa/ssa-pre-7.c index f87476a3a9f..bc7ca4e68e4 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/ssa-pre-7.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/ssa-pre-7.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-O2 -fno-tree-dominator-opts -fdump-tree-fre-stats" } */ +/* { dg-options "-O2 -fno-tree-dominator-opts -fdump-tree-fre1-stats" } */ int foo (int *array) { @@ -8,5 +8,5 @@ foo (int *array) return 0; } /* We should eliminate one load. */ -/* { dg-final { scan-tree-dump-times "Eliminated: 1" 1 "fre"} } */ -/* { dg-final { cleanup-tree-dump "fre" } } */ +/* { dg-final { scan-tree-dump-times "Eliminated: 1" 1 "fre1"} } */ +/* { dg-final { cleanup-tree-dump "fre1" } } */ diff --git a/gcc/testsuite/gcc.dg/tree-ssa/ssa-pre-8.c b/gcc/testsuite/gcc.dg/tree-ssa/ssa-pre-8.c index ae933bbccec..f08ef7fde60 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/ssa-pre-8.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/ssa-pre-8.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-O2 -fno-tree-dominator-opts -fdump-tree-fre-stats" } */ +/* { dg-options "-O2 -fno-tree-dominator-opts -fdump-tree-fre1-stats" } */ struct s { int *n; }; @@ -19,5 +19,5 @@ foo (__SIZE_TYPE__ i, struct s *array) /* We should eliminate two address calculations, and one load. */ /* We used to eliminate a cast but that was before POINTER_PLUS_EXPR was added. */ -/* { dg-final { scan-tree-dump-times "Eliminated: 3" 1 "fre"} } */ -/* { dg-final { cleanup-tree-dump "fre" } } */ +/* { dg-final { scan-tree-dump-times "Eliminated: 3" 1 "fre1"} } */ +/* { dg-final { cleanup-tree-dump "fre1" } } */ diff --git a/gcc/testsuite/gcc.dg/tree-ssa/ssa-pre-9.c b/gcc/testsuite/gcc.dg/tree-ssa/ssa-pre-9.c index 30d968b7c53..4f88624ae19 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/ssa-pre-9.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/ssa-pre-9.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-O2 -fno-tree-dominator-opts -fdump-tree-fre-stats" } */ +/* { dg-options "-O2 -fno-tree-dominator-opts -fdump-tree-fre1-stats" } */ int foo (unsigned long a) { @@ -9,5 +9,5 @@ foo (unsigned long a) return 1; return 0; } -/* { dg-final { scan-tree-dump-times "return 0;" 0 "fre"} } */ -/* { dg-final { cleanup-tree-dump "fre" } } */ +/* { dg-final { scan-tree-dump-times "return 0;" 0 "fre1"} } */ +/* { dg-final { cleanup-tree-dump "fre1" } } */ diff --git a/gcc/testsuite/gcc.dg/tree-ssa/ssa-sccvn-1.c b/gcc/testsuite/gcc.dg/tree-ssa/ssa-sccvn-1.c index 65cd83d7cde..0cb027222fb 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/ssa-sccvn-1.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/ssa-sccvn-1.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-O2 -fdump-tree-fre-stats" } */ +/* { dg-options "-O2 -fdump-tree-fre1-stats" } */ void vnum_test8(int *data) { @@ -17,5 +17,5 @@ void vnum_test8(int *data) } } /* We should eliminate m - n, and set n = n + k into n = m. */ -/* { dg-final { scan-tree-dump-times "Eliminated: 3" 1 "fre"} } */ -/* { dg-final { cleanup-tree-dump "fre" } } */ +/* { dg-final { scan-tree-dump-times "Eliminated: 3" 1 "fre1"} } */ +/* { dg-final { cleanup-tree-dump "fre1" } } */ diff --git a/gcc/testsuite/gcc.dg/tree-ssa/ssa-sccvn-2.c b/gcc/testsuite/gcc.dg/tree-ssa/ssa-sccvn-2.c index cc3661cc6d7..b4c3c14a265 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/ssa-sccvn-2.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/ssa-sccvn-2.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-O2 -fdump-tree-fre-stats" } */ +/* { dg-options "-O2 -fdump-tree-fre1-stats" } */ int vnum_test8(int *data) { @@ -21,5 +21,5 @@ int vnum_test8(int *data) } /* We should eliminate m - n, and set n = n + k into n = m, and set p to 0 */ -/* { dg-final { scan-tree-dump-times "Eliminated: 4" 1 "fre"} } */ -/* { dg-final { cleanup-tree-dump "fre" } } */ +/* { dg-final { scan-tree-dump-times "Eliminated: 4" 1 "fre1"} } */ +/* { dg-final { cleanup-tree-dump "fre1" } } */ diff --git a/gcc/testsuite/gcc.dg/tree-ssa/ssa-sccvn-3.c b/gcc/testsuite/gcc.dg/tree-ssa/ssa-sccvn-3.c index b80a8dc3bba..fb266bb5417 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/ssa-sccvn-3.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/ssa-sccvn-3.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-O2 -fdump-tree-fre-stats" } */ +/* { dg-options "-O2 -fdump-tree-fre1-stats" } */ int main(int argc, char **argv) { int *p; @@ -11,5 +11,5 @@ int main(int argc, char **argv) return result; } /* We should eliminate result = *p by saying it has the value 2. */ -/* { dg-final { scan-tree-dump-times "Eliminated: 1" 1 "fre"} } */ -/* { dg-final { cleanup-tree-dump "fre" } } */ +/* { dg-final { scan-tree-dump-times "Eliminated: 1" 1 "fre1"} } */ +/* { dg-final { cleanup-tree-dump "fre1" } } */ diff --git a/gcc/testsuite/gcc.dg/tree-ssa/ssa-sccvn-4.c b/gcc/testsuite/gcc.dg/tree-ssa/ssa-sccvn-4.c index 7caf4eec6f8..7f0a9329737 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/ssa-sccvn-4.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/ssa-sccvn-4.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-O2 -fdump-tree-fre-stats" } */ +/* { dg-options "-O2 -fdump-tree-fre1-stats" } */ int vnum_test8(int *data) { @@ -23,5 +23,5 @@ int vnum_test8(int *data) } /* We should eliminate m - n, n + k, set data[5] = 0, eliminate the address arithmetic for data[5], and set p = 0. -/* { dg-final { scan-tree-dump-times "Eliminated: 5" 1 "fre"} } */ -/* { dg-final { cleanup-tree-dump "fre" } } */ +/* { dg-final { scan-tree-dump-times "Eliminated: 5" 1 "fre1"} } */ +/* { dg-final { cleanup-tree-dump "fre1" } } */ diff --git a/gcc/testsuite/gcc.dg/tree-ssa/struct-aliasing-1.c b/gcc/testsuite/gcc.dg/tree-ssa/struct-aliasing-1.c index 87b44b530ec..495b7ba114e 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/struct-aliasing-1.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/struct-aliasing-1.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-O2 -fdump-tree-fre-details" } */ +/* { dg-options "-O2 -fdump-tree-fre1-details" } */ struct S { float f; }; int __attribute__((noinline)) @@ -11,5 +11,5 @@ foo (float *r, struct S *p) return i + *q; } -/* { dg-final { scan-tree-dump "Replaced\[^\n\]*with i_." "fre" } } */ -/* { dg-final { cleanup-tree-dump "fre" } } */ +/* { dg-final { scan-tree-dump "Replaced\[^\n\]*with i_." "fre1" } } */ +/* { dg-final { cleanup-tree-dump "fre1" } } */ diff --git a/gcc/testsuite/gcc.dg/tree-ssa/struct-aliasing-2.c b/gcc/testsuite/gcc.dg/tree-ssa/struct-aliasing-2.c index 5acf083c71e..c348bdfe25b 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/struct-aliasing-2.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/struct-aliasing-2.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-O2 -fdump-tree-fre" } */ +/* { dg-options "-O2 -fdump-tree-fre1" } */ struct S { unsigned f; }; @@ -14,6 +14,6 @@ foo ( struct S *p) /* There should only be one load of p->f because fwprop can change *(int *)&p->f into just (int)p->f. */ -/* { dg-final { scan-tree-dump-times "= \[^\n\]*p_.\\\(D\\\)" 1 "fre" } } */ -/* { dg-final { cleanup-tree-dump "fre" } } */ +/* { dg-final { scan-tree-dump-times "= \[^\n\]*p_.\\\(D\\\)" 1 "fre1" } } */ +/* { dg-final { cleanup-tree-dump "fre1" } } */ diff --git a/gcc/testsuite/gfortran.dg/pr42108.f90 b/gcc/testsuite/gfortran.dg/pr42108.f90 index e97dc3756f8..9a0a2532a78 100644 --- a/gcc/testsuite/gfortran.dg/pr42108.f90 +++ b/gcc/testsuite/gfortran.dg/pr42108.f90 @@ -1,5 +1,5 @@ ! { dg-do compile } -! { dg-options "-O2 -fdump-tree-fre" } +! { dg-options "-O2 -fdump-tree-fre1" } subroutine eval(foo1,foo2,foo3,foo4,x,n,nnd) implicit real*8 (a-h,o-z) @@ -23,5 +23,5 @@ end subroutine eval ! There should be only one load from n left -! { dg-final { scan-tree-dump-times "\\*n_" 1 "fre" } } -! { dg-final { cleanup-tree-dump "fre" } } +! { dg-final { scan-tree-dump-times "\\*n_" 1 "fre1" } } +! { dg-final { cleanup-tree-dump "fre1" } }