[Bug tree-optimization/53645] Missed optimization for vector integer division lowering

jakub at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Jun 28 11:38:00 GMT 2012


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53645

--- Comment #6 from Jakub Jelinek <jakub at gcc dot gnu.org> 2012-06-28 11:38:04 UTC ---
Author: jakub
Date: Thu Jun 28 11:38:01 2012
New Revision: 189043

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=189043
Log:
    PR tree-optimization/53645
    * tree-vect-generic.c (add_rshift): New function.
    (expand_vector_divmod): New function.
    (expand_vector_operation): Use it for vector integer
    TRUNC_{DIV,MOD}_EXPR by VECTOR_CST.
    * tree-vect-patterns.c (vect_recog_divmod_pattern): Replace
    unused lguup variable with dummy_int.

    * gcc.c-torture/execute/pr53645.c: New test.

Added:
    trunk/gcc/testsuite/gcc.c-torture/execute/pr53645.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/tree-vect-generic.c
    trunk/gcc/tree-vect-patterns.c



More information about the Gcc-bugs mailing list