From: Tom de Vries Date: Tue, 17 Nov 2015 21:42:27 +0000 (+0000) Subject: Make fdump-tree-sccp-details more complete X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ed22b76f3f7666e43e1b7ff10ce75edee2a28b08;p=gcc.git Make fdump-tree-sccp-details more complete 2015-11-17 Tom de Vries * tree-scalar-evolution.c (scev_const_prop): Dump details if replacing uses of ssa_name with constant. From-SVN: r230504 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index a21f18bbb82..8267d67c956 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2015-11-17 Tom de Vries + + * tree-scalar-evolution.c (scev_const_prop): Dump details if replacing + uses of ssa_name with constant. + 2015-11-17 Tom de Vries * tree-ssa-ccp.c (do_ssa_ccp): Clear LOOP_CLOSED_SSA in loops state if diff --git a/gcc/tree-scalar-evolution.c b/gcc/tree-scalar-evolution.c index e90aafb771c..27630f0e929 100644 --- a/gcc/tree-scalar-evolution.c +++ b/gcc/tree-scalar-evolution.c @@ -3465,7 +3465,17 @@ scev_const_prop (void) /* Replace the uses of the name. */ if (name != ev) - replace_uses_by (name, ev); + { + if (dump_file && (dump_flags & TDF_DETAILS)) + { + fprintf (dump_file, "Replacing uses of: "); + print_generic_expr (dump_file, name, 0); + fprintf (dump_file, " with: "); + print_generic_expr (dump_file, ev, 0); + fprintf (dump_file, "\n"); + } + replace_uses_by (name, ev); + } if (!ssa_names_to_remove) ssa_names_to_remove = BITMAP_ALLOC (NULL);