re PR middle-end/89779 (internal compiler error: tree check: expected class ‘type...
authorRichard Biener <rguenther@suse.de>
Mon, 25 Mar 2019 12:18:38 +0000 (12:18 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Mon, 25 Mar 2019 12:18:38 +0000 (12:18 +0000)
commitc0eb90b5db85f59f031a827755a978772072f44d
tree61b057d5f4ad0f2c138811add99361726b86a67b
parentecef0d345848dedec252f86f6d528c0536b30e69
re PR middle-end/89779 (internal compiler error: tree check: expected class ‘type’, have ‘exceptional’ (error_mark) in tree_nop_conversion_p, at tree.c:12798)

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

PR tree-optimization/89779
* tree-ssa-loop-ivopts.c (remove_unused_ivs): Return
to remove IV defs, delay actual removal.
(tree_ssa_iv_optimize_loop): Likewise.  Avoid SCEV reset.
(tree_ssa_iv_optimize): Remove eliminated IV defs at the
very end, properly also reset loop control IV information.

From-SVN: r269914
gcc/ChangeLog
gcc/tree-ssa-loop-ivopts.c