https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82355

--- Comment #3 from Richard Biener <rguenth at gcc dot gnu.org> ---
Author: rguenth
Date: Mon Oct  2 07:32:52 2017
New Revision: 253336

URL: https://gcc.gnu.org/viewcvs?rev=253336&root=gcc&view=rev
Log:
2017-10-02  Richard Biener  <rguent...@suse.de>

        PR tree-optimization/82355
        * graphite-isl-ast-to-gimple.c (build_iv_mapping): Also build
        a mapping for the enclosing loop but avoid generating one for
        the loop tree root.
        (copy_bb_and_scalar_dependences): Remove premature codegen
        error on PHIs in blocks duplicated into multiple places.
        * graphite-scop-detection.c
        (scop_detection::stmt_has_simple_data_refs_p): For a loop not
        in the region use it as loop and nest to analyze the DR in.
        (try_generate_gimple_bb): Likewise.
        * graphite-sese-to-poly.c (extract_affine_chrec): Adjust.
        (add_loop_constraints): For blocks in a loop not in the region
        create a dimension with a single iteration.
        * sese.h (gbb_loop_at_index): Remove assert.

        * gcc.dg/graphite/fuse-1.c: Adjust.
        * gcc.dg/graphite/fuse-2.c: Likewise.
        * gcc.dg/graphite/pr82355.c: New testcase.

Added:
    trunk/gcc/testsuite/gcc.dg/graphite/pr82355.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/graphite-isl-ast-to-gimple.c
    trunk/gcc/graphite-scop-detection.c
    trunk/gcc/graphite-sese-to-poly.c
    trunk/gcc/sese.h
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/gcc.dg/graphite/fuse-1.c
    trunk/gcc/testsuite/gcc.dg/graphite/fuse-2.c

Reply via email to