[Bug target/31334] Bad codegen for vector initializer with constants prop'd into a vector initializer

pinskia at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Sun Dec 16 04:53:00 GMT 2007



------- Comment #10 from pinskia at gcc dot gnu dot org  2007-12-16 04:53 -------
Aftter 
2007-11-06  Jakub Jelinek  <jakub@redhat.com>

        PR tree-optimization/33993
        * tree-vect-transform.c (vect_get_constant_vectors): Use build_vector
        rather than build_constructor_from_list if all list values are
        constants.
        (get_initial_def_for_induction): Use build_vector instead of
        build_constructor_from_list.

We get for the original testcase:
.L3:
        vadduwm 1,1,0
        vadduwm 0,0,13
        bdnz .L3

As the vectorizer now VECTOR_CST which are handled correctly.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|normal                      |enhancement


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



More information about the Gcc-bugs mailing list