re PR tree-optimization/89487 (ICE in expand_expr_addr_expr_1, at expr.c:7993)
authorBin Cheng <bin.cheng@linux.alibaba.com>
Mon, 4 Mar 2019 01:38:25 +0000 (01:38 +0000)
committerBin Cheng <amker@gcc.gnu.org>
Mon, 4 Mar 2019 01:38:25 +0000 (01:38 +0000)
commitc4450491148133f3825470a6c69d90c745986fe8
tree03e205483e741149342892e40475d2986cbb6741
parent19deb34365246c8dd0bcab74c1637ad2bdf47cca
re PR tree-optimization/89487 (ICE in expand_expr_addr_expr_1, at expr.c:7993)

PR tree-optimization/89487
* tree-loop-distribution.c (has_nonaddressable_dataref_p): New.
(create_rdg_vertices): Compute has_nonaddressable_dataref_p.
(distribute_loop): Don't do runtime alias check if there is non-
addressable data reference.
* tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Check if VAR_DECL
is a register variable.

* gcc/testsuite/gcc.dg/tree-ssa/pr89487.c: New test.

From-SVN: r269361
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/tree-ssa/pr89487.c [new file with mode: 0644]
gcc/tree-loop-distribution.c
gcc/tree-ssa-loop-ivopts.c