This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/36389] [tuples] gimplify_cond_expr should be smarter
- From: "jakub at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 2 Jun 2008 18:20:14 -0000
- Subject: [Bug tree-optimization/36389] [tuples] gimplify_cond_expr should be smarter
- References: <bug-36389-87@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #3 from jakub at gcc dot gnu dot org 2008-06-02 18:20 -------
Subject: Bug 36389
Author: jakub
Date: Mon Jun 2 18:19:29 2008
New Revision: 136287
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=136287
Log:
PR tree-optimization/36389
* gimplify.c (gimplify_cond_expr): If one or both branches are
GOTO_EXPRs jumping to LABEL_DECLs, don't create unnecessary
extra LABEL_DECLs and jumps around.
* tree-cfg.c (remove_useless_stmts_cond): Set may_branch also
for GIMPLE_COND stmts.
* tree-eh.c (replace_goto_queue_cond_clause): Set label to
create_artificial_label () rather than LABEL_EXPR.
Modified:
branches/gimple-tuples-branch/gcc/ChangeLog.tuples
branches/gimple-tuples-branch/gcc/gimplify.c
branches/gimple-tuples-branch/gcc/tree-cfg.c
branches/gimple-tuples-branch/gcc/tree-eh.c
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36389