diff options
author | Richard Guenther <rguenther@suse.de> | 2011-02-09 20:04:56 +0000 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2011-02-09 20:04:56 +0000 |
commit | 282ec48e048c4de1a1d478121ea2db38dcd96ecb (patch) | |
tree | 4f3a2532400bf93fb41d44ae04d80c2aa296b8a8 /gcc/testsuite/gcc.dg/tree-ssa/inline-7.c | |
parent | 5d85c0e3c15c67ebc3c77d4a084dca813981793d (diff) | |
download | gcc-282ec48e048c4de1a1d478121ea2db38dcd96ecb.zip gcc-282ec48e048c4de1a1d478121ea2db38dcd96ecb.tar.gz gcc-282ec48e048c4de1a1d478121ea2db38dcd96ecb.tar.bz2 |
re PR middle-end/47664 (early inliner now needs iteration for multiple calls)
2011-02-09 Richard Guenther <rguenther@suse.de>
PR tree-optimization/47664
* ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
all edges again.
* gcc.dg/tree-ssa/inline-7.c: New testcase.
From-SVN: r169983
Diffstat (limited to 'gcc/testsuite/gcc.dg/tree-ssa/inline-7.c')
-rw-r--r-- | gcc/testsuite/gcc.dg/tree-ssa/inline-7.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/tree-ssa/inline-7.c b/gcc/testsuite/gcc.dg/tree-ssa/inline-7.c new file mode 100644 index 0000000..16c3c86 --- /dev/null +++ b/gcc/testsuite/gcc.dg/tree-ssa/inline-7.c @@ -0,0 +1,9 @@ +/* { dg-do compile } */ +/* { dg-options "-O -fdump-tree-einline" } */ + +void foo0(); +inline void bar0() { foo0(); } +void foobar() { bar0(); bar0(); bar0(); } + +/* { dg-final { scan-tree-dump "Iterations: 1" "einline" } } */ +/* { dg-final { cleanup-tree-dump "einline" } } */ |