diff options
author | bstarynk <bstarynk@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-10-06 08:59:14 +0000 |
---|---|---|
committer | bstarynk <bstarynk@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-10-06 08:59:14 +0000 |
commit | 5a162b7ae6b7d344af6a033e922bc5e0e77eb6aa (patch) | |
tree | 56aca246b6ab6aeda938b1018391b7f1c5d7df72 /gcc/graphite-sese-to-poly.c | |
parent | f68b5712b23021c39d8c91b2c98130266b9504a3 (diff) | |
download | gcc-5a162b7ae6b7d344af6a033e922bc5e0e77eb6aa.tar.gz |
2010-10-06 Basile Starynkevitch <basile@starynkevitch.net>
MELT branch merged with trunk rev 165014
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/melt-branch@165017 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/graphite-sese-to-poly.c')
-rw-r--r-- | gcc/graphite-sese-to-poly.c | 22 |
1 files changed, 8 insertions, 14 deletions
diff --git a/gcc/graphite-sese-to-poly.c b/gcc/graphite-sese-to-poly.c index 0fd6120ced0..87b226b80f0 100644 --- a/gcc/graphite-sese-to-poly.c +++ b/gcc/graphite-sese-to-poly.c @@ -168,12 +168,6 @@ reduction_phi_p (sese region, gimple_stmt_iterator *psi) gimple phi = gsi_stmt (*psi); tree res = gimple_phi_result (phi); - if (!is_gimple_reg (res)) - { - gsi_next (psi); - return false; - } - loop = loop_containing_stmt (phi); if (simple_copy_phi_p (phi)) @@ -1038,7 +1032,6 @@ add_upper_bounds_from_estimated_nit (scop_p scop, double_int nit, ppl_Coefficient_t coef; ppl_Constraint_t ub; - ppl_new_Linear_Expression_with_dimension (&ub_expr, dim); ppl_new_C_Polyhedron_from_space_dimension (&pol, dim, 0); ppl_new_Linear_Expression_from_Linear_Expression (&nb_iters_le, ub_expr); @@ -2359,12 +2352,6 @@ rewrite_degenerate_phi (gimple_stmt_iterator *psi) tree res = gimple_phi_result (phi); basic_block bb; - if (!is_gimple_reg (res)) - { - gsi_next (psi); - return; - } - bb = gimple_bb (phi); rhs = degenerate_phi_result (phi); gcc_assert (rhs); @@ -2392,6 +2379,12 @@ rewrite_reductions_out_of_ssa (scop_p scop) { gimple phi = gsi_stmt (psi); + if (!is_gimple_reg (gimple_phi_result (phi))) + { + gsi_next (&psi); + continue; + } + if (gimple_phi_num_args (phi) > 1 && degenerate_phi_result (phi)) rewrite_degenerate_phi (&psi); @@ -2465,7 +2458,8 @@ rewrite_cross_bb_scalar_deps (sese region, gimple_stmt_iterator *gsi) return false; } - if (!is_gimple_reg (def)) + if (!def + || !is_gimple_reg (def)) return false; if (scev_analyzable_p (def, region)) |