re PR tree-optimization/89572 (ICE in dyn_cast<gcond*, gimple>(gimple*) / get_loop_ex...
authorRichard Biener <rguenther@suse.de>
Mon, 4 Mar 2019 12:23:17 +0000 (12:23 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Mon, 4 Mar 2019 12:23:17 +0000 (12:23 +0000)
commit19d4e4d614655cf76d87522855103c01d029b2cf
treee2a2b32d29b3576883ae772253770465b7767c51
parent0e31827300f1ce12857070c5f27a10ebcca4933e
re PR tree-optimization/89572 (ICE in dyn_cast<gcond*, gimple>(gimple*) / get_loop_exit_condition(loop const*))

2019-03-04  Richard Biener  <rguenther@suse.de>

PR middle-end/89572
* tree-scalar-evolution.c: (get_loop_exit_condition): Use
safe_dyn_cast.

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

From-SVN: r269363
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/torture/pr89572.c [new file with mode: 0644]
gcc/tree-scalar-evolution.c