diff options
author | spop <spop@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-08-11 20:31:14 +0000 |
---|---|---|
committer | spop <spop@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-08-11 20:31:14 +0000 |
commit | 51ec8951638ec1ee24ec5b0f4865032139fedca1 (patch) | |
tree | 43664490bc5dd648d577f5219a8e317c29bc778f /gcc/graphite-sese-to-poly.c | |
parent | a2c572ef680758a82042ea2d6fbb1050c7d7d4db (diff) | |
download | gcc-51ec8951638ec1ee24ec5b0f4865032139fedca1.tar.gz |
Fix gamess: the only constant phi nodes with one argument are is_gimple_min_invariant and SSA_NAME_IS_DEFAULT_DEF.
2010-07-28 Sebastian Pop <sebastian.pop@amd.com>
* graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): The only
constant phi nodes with one argument are is_gimple_min_invariant
and SSA_NAME_IS_DEFAULT_DEF.
* gfortran.dg/graphite/id-22.f: New.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@163168 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/graphite-sese-to-poly.c')
-rw-r--r-- | gcc/graphite-sese-to-poly.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/gcc/graphite-sese-to-poly.c b/gcc/graphite-sese-to-poly.c index 44c658807c6..38e408c753b 100644 --- a/gcc/graphite-sese-to-poly.c +++ b/gcc/graphite-sese-to-poly.c @@ -2240,10 +2240,9 @@ rewrite_close_phi_out_of_ssa (gimple_stmt_iterator *psi, sese region) gcc_assert (gimple_phi_num_args (phi) == 1); /* The phi node can be a non close phi node, when its argument is - invariant, or when it is defined in the same loop as the phi node. */ + invariant, or a default definition. */ if (is_gimple_min_invariant (arg) - || SSA_NAME_IS_DEFAULT_DEF (arg) - || gimple_bb (SSA_NAME_DEF_STMT (arg))->loop_father == bb->loop_father) + || SSA_NAME_IS_DEFAULT_DEF (arg)) { propagate_expr_outside_region (res, arg, region); gsi_next (psi); |