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]

[PATCH PR63530] Fix the pointer alignment in vectorization


Hi

In current vectorization pass, when a new vector pointer is created,
its alignment is not set correctly. We should use DR_MISALIGNMENT (dr)
since only this alignment is adjusted when loop peeling or multi
version is occurred.

This patch passed following tests:
x86_64 bootstrap.
x86_64 regression test.
armv7 regression test.

OK for trunk and 4.9 branch?

thanks
Guozhi Wei

2014-10-17  Guozhi Wei  <carrot@google.com>

        PR tree-optimization/63530
        tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Set
        pointer alignment according to DR_MISALIGNMENT.

Attachment: patch
Description: Binary data


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