diff options
author | amker <amker@138bc75d-0d04-0410-961f-82ee72b054a4> | 2015-06-03 07:33:50 +0000 |
---|---|---|
committer | amker <amker@138bc75d-0d04-0410-961f-82ee72b054a4> | 2015-06-03 07:33:50 +0000 |
commit | d2c73eb950e9643c4f928a53797e95321dee94a1 (patch) | |
tree | 452565f67ee337be42b1dd8a69e7c88f031b8a1f | |
parent | 358c78255d486a9bebaf1347c77a11f91c0172a7 (diff) | |
download | gcc-d2c73eb950e9643c4f928a53797e95321dee94a1.tar.gz |
* tree-ssa-loop-ivopts.c (dump_iv): New parameter.
(dump_use, dump_cand, find_induction_variables): Pass new argument
to dump_iv.
(record_use): Preserve the ssa name information in IV.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@224058 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r-- | gcc/ChangeLog | 7 | ||||
-rw-r--r-- | gcc/tree-ssa-loop-ivopts.c | 14 |
2 files changed, 12 insertions, 9 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index bf01fafd618..07743bba32e 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,10 @@ +2015-06-03 Bin Cheng <bin.cheng@arm.com> + + * tree-ssa-loop-ivopts.c (dump_iv): New parameter. + (dump_use, dump_cand, find_induction_variables): Pass new argument + to dump_iv. + (record_use): Preserve the ssa name information in IV. + 2015-06-03 Richard Sandiford <richard.sandiford@arm.com> * genpreds.c (mark_mode_tests): Mark all MATCH_CODEs as diff --git a/gcc/tree-ssa-loop-ivopts.c b/gcc/tree-ssa-loop-ivopts.c index a7f09e74ebc..1854b335bae 100644 --- a/gcc/tree-ssa-loop-ivopts.c +++ b/gcc/tree-ssa-loop-ivopts.c @@ -517,9 +517,9 @@ single_dom_exit (struct loop *loop) /* Dumps information about the induction variable IV to FILE. */ void -dump_iv (FILE *file, struct iv *iv) +dump_iv (FILE *file, struct iv *iv, bool dump_name) { - if (iv->ssa_name) + if (iv->ssa_name && dump_name) { fprintf (file, "ssa name "); print_generic_expr (file, iv->ssa_name, TDF_SLIM); @@ -596,7 +596,7 @@ dump_use (FILE *file, struct iv_use *use) print_generic_expr (file, *use->op_p, TDF_SLIM); fprintf (file, "\n"); - dump_iv (file, use->iv); + dump_iv (file, use->iv, false); if (use->related_cands) { @@ -684,7 +684,7 @@ dump_cand (FILE *file, struct iv_cand *cand) break; } - dump_iv (file, iv); + dump_iv (file, iv, false); } /* Returns the info for ssa version VER. */ @@ -1326,7 +1326,7 @@ find_induction_variables (struct ivopts_data *data) EXECUTE_IF_SET_IN_BITMAP (data->relevant, 0, i, bi) { if (ver_info (data, i)->iv) - dump_iv (dump_file, ver_info (data, i)->iv); + dump_iv (dump_file, ver_info (data, i)->iv, true); } } @@ -1356,10 +1356,6 @@ record_use (struct ivopts_data *data, tree *use_p, struct iv *iv, use->addr_base = addr_base; use->addr_offset = addr_offset; - /* To avoid showing ssa name in the dumps, if it was not reset by the - caller. */ - iv->ssa_name = NULL_TREE; - data->iv_uses.safe_push (use); return use; |