This is the mail archive of the gcc-patches@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] |
Hello, I mistakenly allowed peeling for alignment to be considered for loads (instead of only stores as the original behavior). This can effect targets which does not support misalign stores but support misalign loads -- for these targets we have more chances to vectorize a loop if we peel for stores as the loads are already supported (i.e., satisfy vect_supportable_dr_alignment). This patch fixes it. Bootstrapped with vectorization enabled on powerpc64 and regtested on x86_64 and ppc. OK for mainline? Thanks, Revital ChangeLog: testsuite/ * gcc.target/powerpc/vsx-vectorize-3.c: Adjust tetcase following change in decision of peeling for alignment. * gcc.target/powerpc/vsx-vectorize-5.c: Likewise. * gcc.dg/vect/vect-50.c: Likewise. * gcc.dg/vect/vect-42.c: Likewise. * gcc.dg/vect/costmodel/i386/costmodel-fast-math-vect-pr29925.c: Likewise. * gcc.dg/vect/costmodel/x86_64/costmodel-fast-math-vect-pr29925.c: Likewise. * gcc.dg/vect/vect-multitypes-6.c: Likewise. * gcc.dg/vect/vect-60.c: Likewise. * gcc.dg/vect/vect-52.c: Likewise. * gcc.dg/vect/vect-44.c: Likewise. * gcc.dg/vect/vect-27.c: Likewise. * gcc.dg/vect/vect-29.c: Likewise. * gcc.dg/vect/vect-72.c: Likewise. * gcc.dg/vect/vect-56.c: Likewise. * gcc.dg/vect/vect-48.c: Likewise. * gcc.dg/vect/vect-multitypes-3.c: Likewise. * gfortran.dg/vect/vect-2.f90: Likewise. * gfortran.dg/vect/vect-5.f90: Likewise. gcc/ * tree-vect-data-refs.c: Consider peeling for alignment only for stores and remove redundant assignment. (See attached file: patch_misalign_4_11.txt)
Attachment:
patch_misalign_4_11.txt
Description: Text document
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |