re PR debug/90231 (ivopts causes <optimized away> iterator in the loop)
authorJakub Jelinek <jakub@redhat.com>
Wed, 23 Oct 2019 12:38:03 +0000 (14:38 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Wed, 23 Oct 2019 12:38:03 +0000 (14:38 +0200)
commitd9eabacb0483ac1f730112d551551c258365f02e
treecce1aacc70ec7ffcfa8236d4d76248b296e529b3
parentacfdb9605f32a99dcbddff5753928dee3932b06b
re PR debug/90231 (ivopts causes <optimized away> iterator in the loop)

PR debug/90231
* tree-ssa-loop-ivopts.c (get_debug_computation_at): New function.
(remove_unused_ivs): Use it instead of get_computation_at.  When
choosing best candidate, only consider candidates where
get_debug_computation_at actually returns non-NULL.

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