[Bug middle-end/81719] Range-based for loop on short fixed size array generates long unrolled loop

aldyh at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Sep 13 16:40:00 GMT 2017


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

--- Comment #4 from Aldy Hernandez <aldyh at gcc dot gnu.org> ---
Author: aldyh
Date: Wed Sep 13 16:40:14 2017
New Revision: 252344

URL: https://gcc.gnu.org/viewcvs?rev=252344&root=gcc&view=rev
Log:
2017-08-08  Richard Biener  <rguenther@suse.de>

        PR middle-end/81719
        * tree-ssa-loop-niter.c: Include tree-dfa.h.
        (expand_simple_operations): Also look through ADDR_EXPRs with
        MEM_REF bases treating them as POINTER_PLUS_EXPR.

        * g++.dg/tree-ssa/pr81719.C: New testcase.

Added:
    branches/range-gen2/gcc/testsuite/g++.dg/tree-ssa/pr81719.C
Modified:
    branches/range-gen2/gcc/ChangeLog
    branches/range-gen2/gcc/testsuite/ChangeLog
    branches/range-gen2/gcc/tree-ssa-loop-niter.c


More information about the Gcc-bugs mailing list