* tree-ssa-loop-ivopts.c (add_autoinc_candidates): Bail out only if
the use statement can throw internally.
From-SVN: r253834
+2017-10-17 Eric Botcazou <ebotcazou@adacore.com>
+
+ * tree-ssa-loop-ivopts.c (add_autoinc_candidates): Bail out only if
+ the use statement can throw internally.
+
2017-10-17 Eric Botcazou <ebotcazou@adacore.com>
* config/visium/visium.c (visium_select_cc_mode): Return CCmode for
statement. */
if (use_bb->loop_father != data->current_loop
|| !dominated_by_p (CDI_DOMINATORS, data->current_loop->latch, use_bb)
- || stmt_could_throw_p (use->stmt)
+ || stmt_can_throw_internal (use->stmt)
|| !cst_and_fits_in_hwi (step))
return;