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] misalignment and loop peeling (vectorizer)


As discussed earlier, peeling loop iterations does not guarantee to reach natural alignment. In such cases, loop peeling should be avoided (or runtime test is required). This patch handles the case where misalignment is known. Bootstrapped and tested on powerpc- darwin. I am also including patch for autovect-branch here. This patch does not handle the case where alignment is unknown.

        * tree-vect-analyze.c (vect_enhance_data_refs_alignment): Avoid
        peeling when natural alignment is not reachable due to known
        misalignment.

* gcc.dg/vect/vect-align-1.c: New.

OK for mainline ?

Thanks,
-
Devang



Attachment: av_misalign_peel.diff
Description: Binary data


Attachment: av_mialign_peel-autovect-branch.diff
Description: Binary data


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