diff mbox

[03/06] Dump dependence information

Message ID DB5PR0801MB2742FEBA72A1DB1B9FDCC38BE78C0@DB5PR0801MB2742.eurprd08.prod.outlook.com
State New
Headers show

Commit Message

Bin Cheng Aug. 14, 2017, 9:19 a.m. UTC
Hi,
This simple patch adds code dumping struct dependence_info.
Bootstrap and test in series.  Is it OK?

Thanks,
bin
2017-08-10  Bin Cheng  <bin.cheng@arm.com>

	* tree-pretty-print.c (dump_generic_node): Dump fixed length
	tag in MEM_REF.  Dump dependence info in TARGET_MEM_REF.

Comments

Jeff Law Aug. 24, 2017, 9:11 p.m. UTC | #1
On 08/14/2017 03:19 AM, Bin Cheng wrote:
> Hi,
> This simple patch adds code dumping struct dependence_info.
> Bootstrap and test in series.  Is it OK?
> 
> Thanks,
> bin
> 2017-08-10  Bin Cheng  <bin.cheng@arm.com>
> 
> 	* tree-pretty-print.c (dump_generic_node): Dump fixed length
> 	tag in MEM_REF.  Dump dependence info in TARGET_MEM_REF.
> 
This is OK iff its dependencies are approved.

jeff
diff mbox

Patch

From 60c58afac71860bdef2bbc7ca579642172865e7f Mon Sep 17 00:00:00 2001
From: Bin Cheng <binche01@e108451-lin.cambridge.arm.com>
Date: Wed, 9 Aug 2017 15:38:18 +0100
Subject: [PATCH 3/6] dump-dependence_info-20170801.txt

---
 gcc/tree-pretty-print.c | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/gcc/tree-pretty-print.c b/gcc/tree-pretty-print.c
index 4d8177c..7457334 100644
--- a/gcc/tree-pretty-print.c
+++ b/gcc/tree-pretty-print.c
@@ -1551,6 +1551,9 @@  dump_generic_node (pretty_printer *pp, tree node, int spc, dump_flags_t flags,
 		pp_unsigned_wide_integer (pp, MR_DEPENDENCE_CLIQUE (node));
 		pp_string (pp, " base ");
 		pp_unsigned_wide_integer (pp, MR_DEPENDENCE_BASE (node));
+
+		if (MR_DEPENDENCE_FIXED_LENGTH_P (node))
+		  pp_string (pp, " fixed");
 	      }
 	    pp_right_bracket (pp);
 	  }
@@ -1611,6 +1614,17 @@  dump_generic_node (pretty_printer *pp, tree node, int spc, dump_flags_t flags,
 	    pp_string (pp, "offset: ");
 	    dump_generic_node (pp, tmp, spc, flags, false);
 	  }
+	if ((flags & TDF_ALIAS)
+	    && MR_DEPENDENCE_CLIQUE (node) != 0)
+	  {
+	    pp_string (pp, " clique ");
+	    pp_unsigned_wide_integer (pp, MR_DEPENDENCE_CLIQUE (node));
+	    pp_string (pp, " base ");
+	    pp_unsigned_wide_integer (pp, MR_DEPENDENCE_BASE (node));
+
+	    if (MR_DEPENDENCE_FIXED_LENGTH_P (node))
+	      pp_string (pp, " fixed");
+	  }
 	pp_right_bracket (pp);
       }
       break;
-- 
1.9.1