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

--- Comment #6 from Richard Biener <rguenth at gcc dot gnu.org> ---
Author: rguenth
Date: Mon Sep 18 10:13:54 2017
New Revision: 252918

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

        Backport from mainline
        2017-09-04  Richard Biener  <rguent...@suse.de>

        PR tree-optimization/82084
        * fold-const.h (can_native_encode_string_p): Declare.
        * fold-const.c (can_native_encode_string_p): Factor out from ...
        (native_encode_string): ... here.
        * tree-vect-stmts.c (vectorizable_store): Call it to avoid
        vectorizing stores from constants we later cannot handle.

        * g++.dg/torture/pr82084.C: New testcase.

        2017-09-06  Richard Biener  <rguent...@suse.de>

        PR tree-optimization/82108
        * tree-vect-stmts.c (vectorizable_load): Fix pointer adjustment
        for gap in the non-permutation SLP case.

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

Added:
    branches/gcc-7-branch/gcc/testsuite/g++.dg/torture/pr82084.C
    branches/gcc-7-branch/gcc/testsuite/gcc.dg/vect/pr82108.c
Modified:
    branches/gcc-7-branch/gcc/ChangeLog
    branches/gcc-7-branch/gcc/fold-const.c
    branches/gcc-7-branch/gcc/fold-const.h
    branches/gcc-7-branch/gcc/testsuite/ChangeLog
    branches/gcc-7-branch/gcc/tree-vect-stmts.c

Reply via email to