From 47a5f7dda578e9134da49c0c8fcabd49175b3b22 Mon Sep 17 00:00:00 2001 From: Alexander Monakov Date: Thu, 23 Aug 2018 19:01:12 +0300 Subject: [PATCH] scev: dump final value replacement expressions * tree-scalar-evolution.c (final_value_replacement_loop): Dump full GENERIC expression used for replacement. From-SVN: r263817 --- gcc/ChangeLog | 5 +++++ gcc/tree-scalar-evolution.c | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 594e1252b1c..39ce3cf019a 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2018-08-23 Alexander Monakov + + * tree-scalar-evolution.c (final_value_replacement_loop): Dump + full GENERIC expression used for replacement. + 2018-08-23 Aldy Hernandez * tree-vrp.c (abs_extent_range): Remove. diff --git a/gcc/tree-scalar-evolution.c b/gcc/tree-scalar-evolution.c index 69122f2652f..6475743a26a 100644 --- a/gcc/tree-scalar-evolution.c +++ b/gcc/tree-scalar-evolution.c @@ -3617,7 +3617,8 @@ final_value_replacement_loop (struct loop *loop) { fprintf (dump_file, "\nfinal value replacement:\n "); print_gimple_stmt (dump_file, phi, 0); - fprintf (dump_file, " with\n "); + fprintf (dump_file, " with expr: "); + print_generic_expr (dump_file, def); } def = unshare_expr (def); remove_phi_node (&psi, false); @@ -3656,6 +3657,7 @@ final_value_replacement_loop (struct loop *loop) gsi_insert_before (&gsi, ass, GSI_SAME_STMT); if (dump_file) { + fprintf (dump_file, "\n final stmt:\n "); print_gimple_stmt (dump_file, ass, 0); fprintf (dump_file, "\n"); } -- 2.30.2