https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83277
Richard Biener <rguenth at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |ASSIGNED Last reconfirmed| |2017-12-05 Assignee|unassigned at gcc dot gnu.org |rguenth at gcc dot gnu.org Target Milestone|--- |8.0 Ever confirmed|0 |1 --- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> --- Testing patch. Index: gcc/graphite-isl-ast-to-gimple.c =================================================================== --- gcc/graphite-isl-ast-to-gimple.c (revision 255402) +++ gcc/graphite-isl-ast-to-gimple.c (working copy) @@ -1137,8 +1137,10 @@ should_copy_to_new_region (gimple *stmt, if (is_gimple_assign (stmt) && (lhs = gimple_assign_lhs (stmt)) && TREE_CODE (lhs) == SSA_NAME - && is_gimple_reg (lhs) - && scev_analyzable_p (lhs, region->region)) + && scev_analyzable_p (lhs, region->region) + /* But to code-generate liveouts - liveout PHI generation is + in generic sese.c code that cannot do code generation. */ + && ! bitmap_bit_p (region->liveout, SSA_NAME_VERSION (lhs))) return false; return true;