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] 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);


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