summaryrefslogtreecommitdiff
path: root/gcc/tree-ssa-loop-ivopts.c
diff options
context:
space:
mode:
authorEric Botcazou <ebotcazou@adacore.com>2017-10-17 21:53:34 +0000
committerEric Botcazou <ebotcazou@gcc.gnu.org>2017-10-17 21:53:34 +0000
commit8119ebd57da976efb670afc5e4a42b66920005a3 (patch)
treea60504eb92895d593a0bfa6dcafa42f3d1821540 /gcc/tree-ssa-loop-ivopts.c
parentaca308040b5c90348cf219b1138efb4ec7d98d28 (diff)
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
Diffstat (limited to 'gcc/tree-ssa-loop-ivopts.c')
-rw-r--r--gcc/tree-ssa-loop-ivopts.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/tree-ssa-loop-ivopts.c b/gcc/tree-ssa-loop-ivopts.c
index 2a71027a1e2..737e393b7c7 100644
--- a/gcc/tree-ssa-loop-ivopts.c
+++ b/gcc/tree-ssa-loop-ivopts.c
@@ -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;