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/57233] Vector lowering of LROTATE_EXPR pessimizes code


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

--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Fri Jun 27 07:03:50 2014
New Revision: 212063

URL: https://gcc.gnu.org/viewcvs?rev=212063&root=gcc&view=rev
Log:
    PR tree-optimization/57233
    PR tree-optimization/61299
    * tree-vect-generic.c (get_compute_type, count_type_subparts): New
    functions.
    (expand_vector_operations_1): Use them.  If {L,R}ROTATE_EXPR
    would be lowered to scalar shifts, check if corresponding
    shifts and vector BIT_IOR_EXPR are supported and don't lower
    or lower just to narrower vector type in that case.
    * expmed.c (expand_shift_1): Fix up handling of vector
    shifts and rotates.

    * gcc.dg/pr57233.c: New test.
    * gcc.target/i386/pr57233.c: New test.
    * gcc.target/i386/sse2-pr57233.c: New test.
    * gcc.target/i386/avx-pr57233.c: New test.
    * gcc.target/i386/avx2-pr57233.c: New test.
    * gcc.target/i386/avx512f-pr57233.c: New test.
    * gcc.target/i386/xop-pr57233.c: New test.

Added:
    trunk/gcc/testsuite/gcc.dg/pr57233.c
    trunk/gcc/testsuite/gcc.target/i386/avx-pr57233.c
    trunk/gcc/testsuite/gcc.target/i386/avx2-pr57233.c
    trunk/gcc/testsuite/gcc.target/i386/avx512f-pr57233.c
    trunk/gcc/testsuite/gcc.target/i386/pr57233.c
    trunk/gcc/testsuite/gcc.target/i386/sse2-pr57233.c
    trunk/gcc/testsuite/gcc.target/i386/xop-pr57233.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/expmed.c
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/tree-vect-generic.c


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