diff options
author | spop <spop@138bc75d-0d04-0410-961f-82ee72b054a4> | 2015-11-04 20:59:12 +0000 |
---|---|---|
committer | spop <spop@138bc75d-0d04-0410-961f-82ee72b054a4> | 2015-11-04 20:59:12 +0000 |
commit | e057353f04d16ebf36cbcbce36181970ca689f93 (patch) | |
tree | 0b84ef4d1580461204d86634f66c034f8f57856b /gcc/graphite-sese-to-poly.c | |
parent | abe556328584416c7d8ea5eaad90551b33ba6d9c (diff) | |
download | gcc-e057353f04d16ebf36cbcbce36181970ca689f93.tar.gz |
improve debug of codegen
- fix printing of ISL stmt and parameter names
- move dot_scop* functions outside of anonymous namespace.
* graphite-isl-ast-to-gimple.c: Include tree-cfg.h.
(translate_isl_ast_node_user): Add more dumps: call print_loops_bb.
* graphite-scop-detection.c (dot_all_scops_1): Moved out of
anonymous namespace.
* graphite-sese-to-poly.c (ssa_name_version_typesize): Remove.
(isl_id_for_pbb): Use a buffer of size 10.
(isl_id_for_ssa_name): Same.
* sese.c (set_rename): Add more dumps.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@229782 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/graphite-sese-to-poly.c')
-rw-r--r-- | gcc/graphite-sese-to-poly.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/gcc/graphite-sese-to-poly.c b/gcc/graphite-sese-to-poly.c index 91abcca503c..fa33c50a533 100644 --- a/gcc/graphite-sese-to-poly.c +++ b/gcc/graphite-sese-to-poly.c @@ -67,9 +67,6 @@ extern "C" { #include "tree-ssa-propagate.h" #include "graphite-sese-to-poly.h" - -static const unsigned ssa_name_version_typesize = sizeof(unsigned); - /* Assigns to RES the value of the INTEGER_CST T. */ static inline void @@ -201,7 +198,7 @@ reduction_phi_p (sese_l ®ion, gphi_iterator *psi) static isl_id * isl_id_for_pbb (scop_p s, poly_bb_p pbb) { - char name[ssa_name_version_typesize]; + char name[10]; snprintf (name, sizeof (name), "S_%d", pbb_index (pbb)); return isl_id_alloc (s->isl_context, name, pbb); } @@ -401,7 +398,7 @@ isl_id_for_ssa_name (scop_p s, tree e) id = isl_id_alloc (s->isl_context, name, e); else { - char name1[ssa_name_version_typesize]; + char name1[10]; snprintf (name1, sizeof (name1), "P_%d", SSA_NAME_VERSION (e)); id = isl_id_alloc (s->isl_context, name1, e); } |