Commit 8119ebd5 by Eric Botcazou Committed by Eric Botcazou

tree-ssa-loop-ivopts.c (add_autoinc_candidates): Bail out only if the use…

tree-ssa-loop-ivopts.c (add_autoinc_candidates): Bail out only if the use statement can throw internally.

	* tree-ssa-loop-ivopts.c (add_autoinc_candidates): Bail out only if
	the use statement can throw internally.

From-SVN: r253834
parent aca30804
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
any RTX present on the RHS of a SET.
* compare-elim.c (try_eliminate_compare): Restore comment.
......@@ -3140,7 +3140,7 @@ add_autoinc_candidates (struct ivopts_data *data, tree base, tree step,
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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment