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  <car...@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

Reply via email to