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

--- Comment #3 from Richard Biener <rguenth at gcc dot gnu.org> ---
Author: rguenth
Date: Tue Jan 16 15:13:05 2018
New Revision: 256746

URL: https://gcc.gnu.org/viewcvs?rev=256746&root=gcc&view=rev
Log:
2018-01-16  Richard Biener  <rguent...@suse.de>

        PR tree-optimization/83867
        * tree-vect-stmts.c (vect_transform_stmt): Precompute
        nested_in_vect_loop_p since the scalar stmt may get invalidated.

        * gcc.dg/vect/pr83867.c: New testcase.

Added:
    trunk/gcc/testsuite/gcc.dg/vect/pr83867.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/tree-vect-stmts.c

Reply via email to