diff options
author | Aditya Kumar <aditya.k7@samsung.com> | 2015-07-15 21:37:07 +0000 |
---|---|---|
committer | Sebastian Pop <spop@gcc.gnu.org> | 2015-07-15 21:37:07 +0000 |
commit | 1f8ba82489f40b751fdb8c0c5a6f6208e888be4a (patch) | |
tree | 0054399e39d988bdc7b154f33b884297eede48b0 | |
parent | d7f49f78a6446d958486ce2c96ed1727f6eca83e (diff) | |
download | gcc-1f8ba82489f40b751fdb8c0c5a6f6208e888be4a.zip gcc-1f8ba82489f40b751fdb8c0c5a6f6208e888be4a.tar.gz gcc-1f8ba82489f40b751fdb8c0c5a6f6208e888be4a.tar.bz2 |
One of the code refactorings introducing phi node iterators modified the semantics of this code.
One of the code refactorings introducing phi node iterators modified
the semantics of this code. Revert that change to what was before.
* graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Point
iterator to use_stmt.
Co-Authored-By: Sebastian Pop <s.pop@samsung.com>
From-SVN: r225851
-rw-r--r-- | gcc/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/graphite-sese-to-poly.c | 6 |
2 files changed, 9 insertions, 3 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 82ef7ec..9c1e3cf 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,4 +1,10 @@ 2015-07-15 Aditya Kumar <aditya.k7@samsung.com> + Sebastian Pop <s.pop@samsung.com> + + * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Point + iterator to use_stmt. + +2015-07-15 Aditya Kumar <aditya.k7@samsung.com> Sebastian Pop <s.pop@samsung.com> * graphite-scop-detection.c (build_scops_1): Discard scops for diff --git a/gcc/graphite-sese-to-poly.c b/gcc/graphite-sese-to-poly.c index ffc948f..aaecab4 100644 --- a/gcc/graphite-sese-to-poly.c +++ b/gcc/graphite-sese-to-poly.c @@ -2441,10 +2441,10 @@ rewrite_cross_bb_scalar_deps (scop_p scop, gimple_stmt_iterator *gsi) handle_scalar_deps_crossing_scop_limits (scop, def, stmt); FOR_EACH_IMM_USE_STMT (use_stmt, imm_iter, def) - if (gimple_code (use_stmt) == GIMPLE_PHI - && (res = true)) + if (gphi *phi = dyn_cast <gphi *> (use_stmt)) { - gphi_iterator psi = gsi_start_phis (gimple_bb (use_stmt)); + res = true; + gphi_iterator psi = gsi_for_phi (phi); if (scalar_close_phi_node_p (gsi_stmt (psi))) rewrite_close_phi_out_of_ssa (scop, &psi); |