diff options
author | Eric Botcazou <ebotcazou@adacore.com> | 2017-10-17 21:53:34 +0000 |
---|---|---|
committer | Eric Botcazou <ebotcazou@gcc.gnu.org> | 2017-10-17 21:53:34 +0000 |
commit | 8119ebd57da976efb670afc5e4a42b66920005a3 (patch) | |
tree | a60504eb92895d593a0bfa6dcafa42f3d1821540 /gcc/tree-ssa-loop-ivopts.c | |
parent | aca308040b5c90348cf219b1138efb4ec7d98d28 (diff) | |
download | gcc-8119ebd57da976efb670afc5e4a42b66920005a3.zip gcc-8119ebd57da976efb670afc5e4a42b66920005a3.tar.gz gcc-8119ebd57da976efb670afc5e4a42b66920005a3.tar.bz2 |
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.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/tree-ssa-loop-ivopts.c b/gcc/tree-ssa-loop-ivopts.c index 2a71027..737e393 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; |