diff options
author | spop <spop@138bc75d-0d04-0410-961f-82ee72b054a4> | 2015-10-21 18:53:26 +0000 |
---|---|---|
committer | spop <spop@138bc75d-0d04-0410-961f-82ee72b054a4> | 2015-10-21 18:53:26 +0000 |
commit | e5f5ebecc523f1918b00980b8021fcbcb828513a (patch) | |
tree | a080a867749e4ee522936859c843d46eb80b636c /gcc/graphite-poly.h | |
parent | 5828c94d50b072e3eb23a735bc39f1e6619ef1f8 (diff) | |
download | gcc-e5f5ebecc523f1918b00980b8021fcbcb828513a.tar.gz |
Refactor graphite-sese-to-poly, sese.h, graphite-poly.h
Now that scop contains a list of all the basic blocks inside, it makes sense to
iterate over only those basic blocks in
graphite-sese-to-poly.c:rewrite_reductions_out_of_ssa,rewrite_cross_bb_scalar_deps_out_of_ssa
Passes regtest and bootstrap.
gcc/ChangeLog:
2015-10-20 Aditya Kumar <hiraditya@msn.com>
* graphite-poly.h (struct dr_info): Added invalid_alias_set number.
(operator=): Removed.
(dr_info): Make alias_set number the last argument with default value of invalid_alias_set.
* graphite-sese-to-poly.c (build_scop_drs): Update constructor of dr_info.
(rewrite_reductions_out_of_ssa): Iterate only through the basic blocks which are inside region.
(rewrite_cross_bb_scalar_deps_out_of_ssa): Same.
* sese.h (struct sese_l): Removed assignment operator.
(split_region_for_bb): Removed dead code.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@229136 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/graphite-poly.h')
-rw-r--r-- | gcc/graphite-poly.h | 26 |
1 files changed, 10 insertions, 16 deletions
diff --git a/gcc/graphite-poly.h b/gcc/graphite-poly.h index 721e9142088..5298f8547f9 100644 --- a/gcc/graphite-poly.h +++ b/gcc/graphite-poly.h @@ -373,29 +373,23 @@ pbb_set_black_box (poly_bb_p pbb, gimple_poly_bb_p black_box) struct dr_info { + enum { + invalid_alias_set = -1 + }; /* The data reference. */ data_reference_p dr; - /* ALIAS_SET is the SCC number assigned by a graph_dfs of the alias graph. -1 - is an invalid alias set. */ - int alias_set; - /* The polyhedral BB containing this DR. */ poly_bb_p pbb; + /* ALIAS_SET is the SCC number assigned by a graph_dfs of the alias graph. + -1 is an invalid alias set. */ + int alias_set; + /* Construct a DR_INFO from a data reference DR, an ALIAS_SET, and a PBB. */ - dr_info (data_reference_p dr, int alias_set, poly_bb_p pbb) - : dr (dr), alias_set (alias_set), pbb (pbb) {} - - /* Assignment operator, to be able to iterate over a vec of these objects. */ - const dr_info & - operator= (const dr_info &p) - { - dr = p.dr; - alias_set = p.alias_set; - pbb = p.pbb; - return *this; - } + dr_info (data_reference_p dr, poly_bb_p pbb, + int alias_set = invalid_alias_set) + : dr (dr), pbb (pbb), alias_set (alias_set) {} }; /* A SCOP is a Static Control Part of the program, simple enough to be |