From 95b855df4652c4b76a2196b7a2384200c49859cf Mon Sep 17 00:00:00 2001 From: Tom de Vries Date: Mon, 16 Jul 2018 07:46:45 +0000 Subject: [PATCH] [vartrack] Print adjusted insn slim if TDF_SLIM 2018-07-16 Tom de Vries * var-tracking.c (vt_initialize): Print adjusted insn slim if dump_flags request TDF_SLIM. From-SVN: r262680 --- gcc/ChangeLog | 5 +++++ gcc/var-tracking.c | 6 +++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index bcec7f95e25..7b48f838661 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2018-07-16 Tom de Vries + + * var-tracking.c (vt_initialize): Print adjusted insn slim if + dump_flags request TDF_SLIM. + 2018-07-16 Aldy Hernandez * fold-const.c (int_const_binop_1): Abstract... diff --git a/gcc/var-tracking.c b/gcc/var-tracking.c index 8e800960b6d..6c0460b9fe9 100644 --- a/gcc/var-tracking.c +++ b/gcc/var-tracking.c @@ -115,6 +115,7 @@ #include "tree-pretty-print.h" #include "rtl-iter.h" #include "fibonacci_heap.h" +#include "print-rtl.h" typedef fibonacci_heap bb_heap_t; typedef fibonacci_node bb_heap_node_t; @@ -10227,7 +10228,10 @@ vt_initialize (void) cselib_process_insn (insn); if (dump_file && (dump_flags & TDF_DETAILS)) { - print_rtl_single (dump_file, insn); + if (dump_flags & TDF_SLIM) + dump_insn_slim (dump_file, insn); + else + print_rtl_single (dump_file, insn); dump_cselib_table (dump_file); } } -- 2.30.2