[Bug tree-optimization/89572] [7 Regression] ICE in dyn_cast<gcond*, gimple>(gimple*) / get_loop_exit_condition(loop const*)
rguenth at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Mar 14 09:15:00 GMT 2019
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89572
--- Comment #5 from Richard Biener <rguenth at gcc dot gnu.org> ---
Author: rguenth
Date: Thu Mar 14 09:14:30 2019
New Revision: 269675
URL: https://gcc.gnu.org/viewcvs?rev=269675&root=gcc&view=rev
Log:
2019-03-14 Richard Biener <rguenther@suse.de>
PR middle-end/89572
* tree-scalar-evolution.c (get_loop_exit_condition): Use
safe_dyn_cast.
* tree-ssa-loop-ivcanon.c (canonicalize_loop_induction_variables):
Use gimple_location_safe.
* gcc.dg/torture/pr89572.c: New testcase.
Added:
branches/gcc-8-branch/gcc/testsuite/gcc.dg/torture/pr89572.c
Modified:
branches/gcc-8-branch/gcc/ChangeLog
branches/gcc-8-branch/gcc/testsuite/ChangeLog
branches/gcc-8-branch/gcc/tree-scalar-evolution.c
branches/gcc-8-branch/gcc/tree-ssa-loop-ivcanon.c
More information about the Gcc-bugs
mailing list