summaryrefslogtreecommitdiff
path: root/gcc/tree-if-conv.c
diff options
context:
space:
mode:
authordpatel <dpatel@138bc75d-0d04-0410-961f-82ee72b054a4>2005-04-13 19:02:31 +0000
committerdpatel <dpatel@138bc75d-0d04-0410-961f-82ee72b054a4>2005-04-13 19:02:31 +0000
commite5face61aaa02ad5b94a1e849e8534341e67913f (patch)
tree50fac4cd0bd0bae485c4908a24936694467bd395 /gcc/tree-if-conv.c
parentdfc30596599cc3143b9d09781d9fba373d7e1c7b (diff)
downloadgcc-e5face61aaa02ad5b94a1e849e8534341e67913f.tar.gz
* tree-if-conv.c (tree_if_convert_cond_expr): Do not create extra
temp variables. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@98104 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-if-conv.c')
-rw-r--r--gcc/tree-if-conv.c17
1 files changed, 0 insertions, 17 deletions
diff --git a/gcc/tree-if-conv.c b/gcc/tree-if-conv.c
index e63dc669df2..2770539d435 100644
--- a/gcc/tree-if-conv.c
+++ b/gcc/tree-if-conv.c
@@ -277,15 +277,6 @@ tree_if_convert_cond_expr (struct loop *loop, tree stmt, tree cond,
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),
&true_edge, &false_edge);
@@ -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,
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. */
c2 = invert_truthvalue (unshare_expr (c));
add_to_dst_predicate_list (loop, false_edge->dest, cond, c2, bsi);