PR tree-optimization/60823
commit2d78e89fa16cb24db7248c2c7e33fea10dbaaa0c
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 22 Apr 2014 10:21:32 +0000 (22 10:21 +0000)
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 22 Apr 2014 10:21:32 +0000 (22 10:21 +0000)
tree6bdbf55401c310f7e635b4e6df5d894fff74da1c
parent19f5801417c515aba8acb8adbe94dc39044ecbb0
PR tree-optimization/60823
* omp-low.c (ipa_simd_modify_function_body): Go through
all SSA_NAMEs and for those refering to vector arguments
which are going to be replaced adjust SSA_NAME_VAR and,
if it is a default definition, change it into a non-default
definition assigned at the beginning of function from new_decl.
(ipa_simd_modify_stmt_ops): Rewritten.
* tree-dfa.c (set_ssa_default_def): When removing default def,
check for NULL loc instead of NULL *loc.

* c-c++-common/gomp/pr60823-1.c: New test.
* c-c++-common/gomp/pr60823-2.c: New test.
* c-c++-common/gomp/pr60823-3.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@209616 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/omp-low.c
gcc/testsuite/ChangeLog
gcc/testsuite/c-c++-common/gomp/pr60823-1.c [new file with mode: 0644]
gcc/testsuite/c-c++-common/gomp/pr60823-2.c [new file with mode: 0644]
gcc/testsuite/c-c++-common/gomp/pr60823-3.c [new file with mode: 0644]
gcc/tree-dfa.c