This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH] PR/16105
- From: Devang Patel <dpatel at apple dot com>
- To: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Mon, 21 Jun 2004 16:57:29 -0700
- Subject: [PATCH] PR/16105
This patch allows auto-vectorizer to vectorize example loop from PR
16105.
2004-06-21 Devang Patel <dpatel@apple.com>
* c-gimplify.c (gimplify_decl_stmt): Set MODIFY_EXPR type.
Full bootstrap and regression testing for mainline is in progress.
OK to install, if it does not reveal any new regressions?
Thanks,
--
Devang
Index: c-gimplify.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/c-gimplify.c,v
retrieving revision 2.3.4.1
diff -Idpatel.pbxuser -c -3 -p -r2.3.4.1 c-gimplify.c
*** c-gimplify.c 7 Jun 2004 17:04:23 -0000 2.3.4.1
--- c-gimplify.c 21 Jun 2004 23:52:07 -0000
*************** gimplify_decl_stmt (tree *stmt_p)
*** 909,915 ****
TREE_NO_WARNING (decl) = 1;
DECL_INITIAL (decl) = NULL_TREE;
! init = build (MODIFY_EXPR, void_type_node, decl, init);
if (stmts_are_full_exprs_p ())
init = build1 (CLEANUP_POINT_EXPR, void_type_node,
init);
append_to_compound_expr (init, &pre);
--- 909,915 ----
TREE_NO_WARNING (decl) = 1;
DECL_INITIAL (decl) = NULL_TREE;
! init = build (MODIFY_EXPR, TREE_TYPE (decl), decl, init);
if (stmts_are_full_exprs_p ())
init = build1 (CLEANUP_POINT_EXPR, void_type_node, init);
append_to_compound_expr (init, &pre);