This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug tree-optimization/68786] Aligned masked store is generated for unaligned pointer


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

--- Comment #6 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Wed Dec  9 13:42:06 2015
New Revision: 231454

URL: https://gcc.gnu.org/viewcvs?rev=231454&root=gcc&view=rev
Log:
        PR tree-optimization/68786
        * tree-if-conv.c: Include builtins.h.
        (predicate_mem_writes): Put result of get_object_alignment (ref)
        into second argument's value.
        * tree-vect-stmts.c (vectorizable_mask_load_store): Put minimum
        pointer alignment into second argument's value.
        * tree-data-ref.c (get_references_in_stmt): Use value of second
        argument for build_aligned_type, and only the type to build
        a zero second argument for MEM_REF.
        * internal-fn.c (expand_mask_load_optab_fn,
        expand_mask_store_optab_fn): Likewise.

Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/internal-fn.c
    trunk/gcc/tree-data-ref.c
    trunk/gcc/tree-if-conv.c
    trunk/gcc/tree-vect-stmts.c

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]