fix TARGET_MEM_REF dumping
authorRichard Biener <rguenther@suse.de>
Thu, 15 Oct 2020 11:08:48 +0000 (13:08 +0200)
committerRichard Biener <rguenther@suse.de>
Thu, 15 Oct 2020 11:59:58 +0000 (13:59 +0200)
This fixes the missing constant offset from TARGET_MEM_REF dumping.

2020-10-15  Richard Biener  <rguenther@suse.de>

* tree-pretty-print.c (dump_mem_ref): Print constant offset
also for TARGET_MEM_REF.

gcc/tree-pretty-print.c

index ed6407c..64ac5ab 100644 (file)
@@ -1542,8 +1542,7 @@ dump_mem_ref (pretty_printer *pp, tree node, int spc, dump_flags_t flags)
       dump_generic_node (pp, op1type, spc, flags | TDF_SLIM, false);
       pp_right_paren (pp);
       dump_generic_node (pp, op0, spc, flags, false);
-      if (TREE_CODE (node) == MEM_REF
-         && !integer_zerop (op1))
+      if (!integer_zerop (op1))
        {
          pp_string (pp, " + ");
          dump_generic_node (pp, op1, spc, flags, false);