re PR tree-optimization/84929 (ICE at -O3 on valid code on x86_64-linux-gnu: tree...
authorRichard Biener <rguenther@suse.de>
Mon, 19 Mar 2018 12:49:30 +0000 (12:49 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Mon, 19 Mar 2018 12:49:30 +0000 (12:49 +0000)
commit25f91fda52f88f4a639a30ec33d821f1acb9c058
tree079838dd79a6c0a620fc0d836864307e975318b8
parent8455b50eccdeac648fd0ebd0b7dd60b0e8bbffbb
re PR tree-optimization/84929 (ICE at -O3 on valid code on x86_64-linux-gnu: tree check: expected polynomial_chrec, have nop_expr in analyze_siv_subscript_cst_affine, at tree-data-ref.c:3018)

2018-03-19  Richard Biener  <rguenther@suse.de>

PR tree-optimization/84929
* tree-data-ref.c (analyze_siv_subscript_cst_affine): Guard
chrec_is_positive against non-chrec arg.

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

From-SVN: r258643
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/torture/pr84929.c [new file with mode: 0644]
gcc/tree-data-ref.c