[vartrack] Print adjusted insn slim if TDF_SLIM
authorTom de Vries <tdevries@suse.de>
Mon, 16 Jul 2018 07:46:45 +0000 (07:46 +0000)
committerTom de Vries <vries@gcc.gnu.org>
Mon, 16 Jul 2018 07:46:45 +0000 (07:46 +0000)
2018-07-16  Tom de Vries  <tdevries@suse.de>

* var-tracking.c (vt_initialize): Print adjusted insn slim if
dump_flags request TDF_SLIM.

From-SVN: r262680

gcc/ChangeLog
gcc/var-tracking.c

index bcec7f95e25428aac7eaba310a2aa3741e54bf3a..7b48f8386618da82935603cda8d5fa5f3663fde7 100644 (file)
@@ -1,3 +1,8 @@
+2018-07-16  Tom de Vries  <tdevries@suse.de>
+
+       * var-tracking.c (vt_initialize): Print adjusted insn slim if
+       dump_flags request TDF_SLIM.
+
 2018-07-16  Aldy Hernandez  <aldyh@redhat.com>
 
         * fold-const.c (int_const_binop_1): Abstract...
index 8e800960b6d0faab28197b68823200a480206f28..6c0460b9fe9e7f6ae8538da6c99abc142afdcb9c 100644 (file)
 #include "tree-pretty-print.h"
 #include "rtl-iter.h"
 #include "fibonacci_heap.h"
+#include "print-rtl.h"
 
 typedef fibonacci_heap <long, basic_block_def> bb_heap_t;
 typedef fibonacci_node <long, basic_block_def> 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);
                        }
                    }