diff options
author | vries <vries@138bc75d-0d04-0410-961f-82ee72b054a4> | 2016-02-09 08:52:26 +0000 |
---|---|---|
committer | vries <vries@138bc75d-0d04-0410-961f-82ee72b054a4> | 2016-02-09 08:52:26 +0000 |
commit | b53e0a91eff231f3bddd30cd9c457396451030e4 (patch) | |
tree | a53640e73561f39233aab57200e2532f657e2423 /libgomp/testsuite | |
parent | d4d3da7ecf4b90e560a5dd3c8fca0a42b7dc569a (diff) | |
download | gcc-b53e0a91eff231f3bddd30cd9c457396451030e4.tar.gz |
Fix GOMP/GOACC_parallel optimization in ipa-pta
2016-02-09 Tom de Vries <tom@codesourcery.com>
PR tree-optimization/69599
* tree-ssa-structalias.c (fndecl_maybe_in_other_partition): New
function.
(find_func_aliases_for_builtin_call, find_func_clobbers)
(ipa_pta_execute): Handle case that foo and foo._0 are not in same lto
partition.
* testsuite/libgomp.c/omp-nested-3.c: New test.
* testsuite/libgomp.c/pr46032-2.c: New test.
* testsuite/libgomp.oacc-c-c++-common/kernels-2.c: New test.
* testsuite/libgomp.oacc-c-c++-common/parallel-2.c: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@233240 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libgomp/testsuite')
4 files changed, 16 insertions, 0 deletions
diff --git a/libgomp/testsuite/libgomp.c/omp-nested-3.c b/libgomp/testsuite/libgomp.c/omp-nested-3.c new file mode 100644 index 00000000000..7790c58d515 --- /dev/null +++ b/libgomp/testsuite/libgomp.c/omp-nested-3.c @@ -0,0 +1,4 @@ +// { dg-do run { target lto } } +// { dg-additional-options "-fipa-pta -flto -flto-partition=max" } + +#include "omp-nested-1.c" diff --git a/libgomp/testsuite/libgomp.c/pr46032-2.c b/libgomp/testsuite/libgomp.c/pr46032-2.c new file mode 100644 index 00000000000..1125f6ec2b2 --- /dev/null +++ b/libgomp/testsuite/libgomp.c/pr46032-2.c @@ -0,0 +1,4 @@ +/* { dg-do run { target lto } } */ +/* { dg-options "-O2 -ftree-vectorize -std=c99 -fipa-pta -flto -flto-partition=max" } */ + +#include "pr46032.c" diff --git a/libgomp/testsuite/libgomp.oacc-c-c++-common/kernels-2.c b/libgomp/testsuite/libgomp.oacc-c-c++-common/kernels-2.c new file mode 100644 index 00000000000..f76c926a68f --- /dev/null +++ b/libgomp/testsuite/libgomp.oacc-c-c++-common/kernels-2.c @@ -0,0 +1,4 @@ +/* { dg-do run { target lto } } */ +/* { dg-additional-options "-fipa-pta -flto -flto-partition=max" } */ + +#include "kernels-1.c" diff --git a/libgomp/testsuite/libgomp.oacc-c-c++-common/parallel-2.c b/libgomp/testsuite/libgomp.oacc-c-c++-common/parallel-2.c new file mode 100644 index 00000000000..d9fff6ff39b --- /dev/null +++ b/libgomp/testsuite/libgomp.oacc-c-c++-common/parallel-2.c @@ -0,0 +1,4 @@ +/* { dg-do run { target lto } } */ +/* { dg-additional-options "-fipa-pta -flto -flto-partition=max" } */ + +#include "parallel-1.c" |