re PR middle-end/89725 (ICE in get_fnname_from_decl, at varasm.c:1723)
authorBin Cheng <bin.cheng@linux.alibaba.com>
Mon, 8 Apr 2019 11:52:18 +0000 (11:52 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Mon, 8 Apr 2019 11:52:18 +0000 (11:52 +0000)
commitd6366157deac0b526ce7ecfd2821745eecce06c8
tree3042ff24ef928ab4c8b2ad26e74939b33f07787b
parent145f764aae16c101baf41c815abe99353fcf797d
re PR middle-end/89725 (ICE in get_fnname_from_decl, at varasm.c:1723)

2019-04-01  Bin Cheng  <bin.cheng@linux.alibaba.com>

PR tree-optimization/89725
* tree-chrec.c (chrec_contains_symbols): New parameter.  Handle outer
loop's chrec as invariant symbol.
* tree-chrec.h (chrec_contains_symbols): New parameter.
* tree-data-ref.c (analyze_miv_subscript): Pass new argument.
(build_classic_dist_vector_1, add_other_self_distances): Bypass access
function of loops not in DDR's loop_nest.
* tree-data-ref.h (index_in_loop_nest): Add unreachable check.

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

From-SVN: r270203
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/tree-ssa/pr89725.c [new file with mode: 0644]
gcc/tree-chrec.c
gcc/tree-chrec.h
gcc/tree-data-ref.c
gcc/tree-data-ref.h