aboutsummaryrefslogtreecommitdiff
path: root/gcc/sese.h
diff options
context:
space:
mode:
authorAditya Kumar <aditya.k7@samsung.com>2015-10-21 18:53:26 +0000
committerSebastian Pop <spop@gcc.gnu.org>2015-10-21 18:53:26 +0000
commitcaf5b4dfca050e8e93b1ee15705ab9c759854f40 (patch)
treea080a867749e4ee522936859c843d46eb80b636c /gcc/sese.h
parentd37fc3aa4aae5adf437a4d0b6370dc24759e5689 (diff)
downloadgcc-caf5b4dfca050e8e93b1ee15705ab9c759854f40.zip
gcc-caf5b4dfca050e8e93b1ee15705ab9c759854f40.tar.gz
gcc-caf5b4dfca050e8e93b1ee15705ab9c759854f40.tar.bz2
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. From-SVN: r229136
Diffstat (limited to 'gcc/sese.h')
-rw-r--r--gcc/sese.h37
1 files changed, 0 insertions, 37 deletions
diff --git a/gcc/sese.h b/gcc/sese.h
index f2dd55e..6b6b904 100644
--- a/gcc/sese.h
+++ b/gcc/sese.h
@@ -32,14 +32,6 @@ struct sese_l
operator bool () const { return entry && exit; }
- const sese_l &
- operator= (const sese_l &s)
- {
- entry = s.entry;
- exit = s.exit;
- return *this;
- }
-
edge entry;
edge exit;
};
@@ -205,35 +197,6 @@ sese_loop_depth (sese_l &region, loop_p loop)
return depth;
}
-/* Splits BB to make a single entry single exit region. */
-
-static inline sese_info_p
-split_region_for_bb (basic_block bb)
-{
- edge entry, exit;
-
- if (single_pred_p (bb))
- entry = single_pred_edge (bb);
- else
- {
- entry = split_block_after_labels (bb);
- bb = single_succ (bb);
- }
-
- if (single_succ_p (bb))
- exit = single_succ_edge (bb);
- else
- {
- gimple_stmt_iterator gsi = gsi_last_bb (bb);
- gsi_prev (&gsi);
- exit = split_block (bb, gsi_stmt (gsi));
- }
-
- return new_sese_info (entry, exit);
-}
-
-
-
/* A single entry single exit specialized for conditions. */
typedef struct ifsese_s {