]> git.ipfire.org Git - thirdparty/gcc.git/commit
Backport PRs 90328, 90402, 90450, 90474
authorRichard Biener <rguenther@suse.de>
Thu, 6 Jun 2019 11:06:45 +0000 (11:06 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Thu, 6 Jun 2019 11:06:45 +0000 (11:06 +0000)
commit6ea3780cabf07978f19aab01ed11d105bf3fdcb4
tree3b50e2c9e5e62721af6ad2b015cf041aa1e36278
parent178bc110092a32b3411b5b1b03dc58ff2a8cb2ac
Backport PRs 90328, 90402, 90450, 90474

2019-06-06  Richard Biener  <rguenther@suse.de>

Backport from mainline
2019-05-22  Richard Biener  <rguenther@suse.de>

PR tree-optimization/90450
* tree-ssa-loop-im.c (struct im_mem_ref): Add ref_decomposed.
(mem_ref_hasher::equal): Check it.
(mem_ref_alloc): Initialize it.
(gather_mem_refs_stmt): Set it.

2019-05-15  Richard Biener  <rguenther@suse.de>

PR c/90474
* c-common.c (c_common_mark_addressable_vec): Also mark
a COMPOUND_LITERAL_EXPR_DECL addressable similar to
c_mark_addressable.

2019-05-13  Richard Biener  <rguenther@suse.de>

PR tree-optimization/90402
* tree-if-conv.c (tree_if_conversion): Value number only
the loop body by making the latch an exit of the region
as well.
* tree-ssa-sccvn.c (process_bb): Add flag whether to skip
processing PHIs.
(do_rpo_vn): Deal with multiple edges into the entry block
that are not backedges inside the region by skipping PHIs
of the entry block.

* gcc.dg/torture/pr90402-1.c: New testcase.

2019-05-06  Richard Biener  <rguenther@suse.de>

PR tree-optimization/90328
* tree-data-ref.h (dr_may_alias_p): Pass in the actual loop nest.
* tree-data-ref.c (dr_may_alias_p): Check whether the clique
is valid in the loop nest before using it.
(initialize_data_dependence_relation): Adjust.
* graphite-scop-detection.c (build_alias_set): Pass the SCOP enclosing
loop as loop-nest to dr_may_alias_p.

* gcc.dg/torture/pr90328.c: New testcase.

From-SVN: r271995
12 files changed:
gcc/ChangeLog
gcc/c-family/ChangeLog
gcc/c-family/c-common.c
gcc/graphite-scop-detection.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/torture/pr90328.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/torture/pr90402-1.c [new file with mode: 0644]
gcc/tree-data-ref.c
gcc/tree-data-ref.h
gcc/tree-if-conv.c
gcc/tree-ssa-loop-im.c
gcc/tree-ssa-sccvn.c