From e71d6a062498dfbe6f7a46cfb4cde61143fc817b Mon Sep 17 00:00:00 2001 From: kazu Date: Wed, 11 May 2005 18:27:33 +0000 Subject: [PATCH] PR tree-optimizer/18472 * tree-if-conv.c (tree_if_convert_stmt, if_convertible_modify_expr_p): Don't handle GOTO_EXPR. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@99588 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/ChangeLog | 6 ++++++ gcc/tree-if-conv.c | 10 +--------- 2 files changed, 7 insertions(+), 9 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 07ed6e1..a2996b2 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2005-05-11 Kazu Hirata + + PR tree-optimizer/18472 + * tree-if-conv.c (tree_if_convert_stmt, + if_convertible_modify_expr_p): Don't handle GOTO_EXPR. + 2005-05-11 Jan Hubicka * Makefile.in (tree-eh.o: Kill gt-tree-eh.h dependency. diff --git a/gcc/tree-if-conv.c b/gcc/tree-if-conv.c index 2d72eea..decd9cd 100644 --- a/gcc/tree-if-conv.c +++ b/gcc/tree-if-conv.c @@ -241,13 +241,6 @@ tree_if_convert_stmt (struct loop * loop, tree t, tree cond, program. */ break; - case GOTO_EXPR: - /* Unconditional goto */ - add_to_predicate_list (bb_for_stmt (TREE_OPERAND (t, 1)), cond); - bsi_remove (bsi); - cond = NULL_TREE; - break; - case COND_EXPR: /* Update destination blocks' predicate list and remove this condition expression. */ @@ -401,7 +394,7 @@ if_convertible_modify_expr_p (struct loop *loop, basic_block bb, tree m_expr) /* Return true, iff STMT is if-convertible. Statement is if-convertible if, - It is if-convertible MODIFY_EXPR - - IT is LABEL_EXPR, GOTO_EXPR or COND_EXPR. + - IT is LABEL_EXPR or COND_EXPR. STMT is inside block BB, which is inside loop LOOP. */ static bool @@ -418,7 +411,6 @@ if_convertible_stmt_p (struct loop *loop, basic_block bb, tree stmt) return false; break; - case GOTO_EXPR: case COND_EXPR: break; -- 2.7.4