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] Update if-conversion for AV


This small patch updates if-conversion such that if-converted
loops are suitable for auto-vectorization. This patch includes
two changes: 1) Avoid/delay creating temp. for exit cond. 2)
Merge header and exit block so that vectorizer receives loop
with 2 nodes only.

Bootstrapped and tested on powerpc-darwin.

OK?
Thanks,
-
Devang

2004-09-15 Devang Patel <dpatel@apple.com>

* tree-if-conv.c (tree_if_convert_cond_expr): Creating temp. variable only
when necessary.
(combine_blocks): Combine loop header and exit block.


Attachment: ifc2_fsf_mainline.4.0.diff
Description: Binary data


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