Commit f3b2c506 by Devang Patel Committed by Devang Patel

tree-if-conv.c (tree_if_convert_cond_expr): Do not create extra temp variables.

       * tree-if-conv.c (tree_if_convert_cond_expr): Do not create extra
       temp variables.

From-SVN: r98104
parent d29b4b1b
2005-04-13 Devang Patel <dpatel@apple.com>
* tree-if-conv.c (tree_if_convert_cond_expr): Do not create extra
temp variables.
2005-04-13 Hans-Peter Nilsson <hp@axis.com> 2005-04-13 Hans-Peter Nilsson <hp@axis.com>
CRIS prologue as RTL. CRIS prologue as RTL.
......
...@@ -277,15 +277,6 @@ tree_if_convert_cond_expr (struct loop *loop, tree stmt, tree cond, ...@@ -277,15 +277,6 @@ tree_if_convert_cond_expr (struct loop *loop, tree stmt, tree cond,
c = COND_EXPR_COND (stmt); c = COND_EXPR_COND (stmt);
/* Create temp. for condition. */
if (!is_gimple_condexpr (c))
{
tree new_stmt;
new_stmt = ifc_temp_var (TREE_TYPE (c), unshare_expr (c));
bsi_insert_before (bsi, new_stmt, BSI_SAME_STMT);
c = TREE_OPERAND (new_stmt, 0);
}
extract_true_false_edges_from_block (bb_for_stmt (stmt), extract_true_false_edges_from_block (bb_for_stmt (stmt),
&true_edge, &false_edge); &true_edge, &false_edge);
...@@ -295,14 +286,6 @@ tree_if_convert_cond_expr (struct loop *loop, tree stmt, tree cond, ...@@ -295,14 +286,6 @@ tree_if_convert_cond_expr (struct loop *loop, tree stmt, tree cond,
add_to_dst_predicate_list (loop, true_edge->dest, cond, add_to_dst_predicate_list (loop, true_edge->dest, cond,
unshare_expr (c), bsi); unshare_expr (c), bsi);
if (!is_gimple_reg(c) && is_gimple_condexpr (c))
{
tree new_stmt;
new_stmt = ifc_temp_var (TREE_TYPE (c), unshare_expr (c));
bsi_insert_before (bsi, new_stmt, BSI_SAME_STMT);
c = TREE_OPERAND (new_stmt, 0);
}
/* If 'c' is false then FALSE_EDGE is taken. */ /* If 'c' is false then FALSE_EDGE is taken. */
c2 = invert_truthvalue (unshare_expr (c)); c2 = invert_truthvalue (unshare_expr (c));
add_to_dst_predicate_list (loop, false_edge->dest, cond, c2, bsi); add_to_dst_predicate_list (loop, false_edge->dest, cond, c2, bsi);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment