diff options
author | Zdenek Dvorak <dvorakz@suse.cz> | 2007-04-27 10:20:39 +0200 |
---|---|---|
committer | Zdenek Dvorak <rakdver@gcc.gnu.org> | 2007-04-27 08:20:39 +0000 |
commit | a9b77cd1f72118dead00c720f1fc3348b7c5127e (patch) | |
tree | 27999109f6865e3cf09cab56d6dcff63b98e5594 /gcc/tree-complex.c | |
parent | f5c3dc96c341e300248c37f76067b5a02d61bffb (diff) | |
download | gcc-a9b77cd1f72118dead00c720f1fc3348b7c5127e.tar.gz |
tree-ssa-loop-im.c (determine_invariantness_stmt): Attempt to transform only GIMPLE_MODIFY_STMTs.
* tree-ssa-loop-im.c (determine_invariantness_stmt): Attempt to
transform only GIMPLE_MODIFY_STMTs.
* tree-complex.c (expand_complex_operations_1): Ditto.
(expand_complex_div_wide): Do not create gotos in COND_EXPR branches.
* tree-ssa-loop-manip.c (build_if_stmt): Removed.
(tree_transform_and_unroll_loop): Do not create gotos in COND_EXPR
branches.
* value-prof.c (tree_divmod_fixed_value, tree_mod_pow2,
tree_mod_subtract, tree_ic, tree_stringop_fixed_value): Ditto.
* omp-low.c (expand_parallel_call, expand_omp_for_generic,
expand_omp_for_static_chunk, expand_omp_for_static_nochunk): Ditto.
* tree-vectorizer.c (slpeel_make_loop_iterate_ntimes,
slpeel_add_loop_guard): Ditto.
* tree-mudflap.c (mf_build_check_statement_for): Ditto.
* lambda-code.c (perfect_nestify): Ditto.
* tree-iterator.c (tsi_split_statement_list_before): Fix splitting
before the first statement.
* tree-optimize.c (execute_free_datastructures): Fix comments.
(execute_free_cfg_annotations): Do not call disband_implicit_edges.
* tree-flow.h (disband_implicit_edges): Declaration removed.
* tree-cfg.c (make_cond_expr_edges): Remove gotos from COND_EXPR
branches.
(cleanup_dead_labels, tree_redirect_edge_and_branch): Handle COND_EXPRs
without gotos.
(disband_implicit_edges, has_label_p): Removed.
(tree_verify_flow_info): Verify that COND_EXPR branches are empty.
(tree_lv_add_condition_to_bb): Do not create gotos in COND_EXPR
branches.
* tree.c (build3_stat): Mark COND_EXPRs used as statements as having
side effects.
* tree-pretty-print.c (dump_implicit_edges): Dump implicit edges
also for COND_EXPRs.
* cfgexpand.c (label_rtx_for_bb): New function.
(expand_gimple_cond_expr): Do not expect gotos in COND_EXPR branches.
Use label_rtx_for_bb to find the labels.
(expand_gimple_basic_block): Remove RETURN_EXPR at the end of the
last block. Detect fallthru edges.
From-SVN: r124214
Diffstat (limited to 'gcc/tree-complex.c')
-rw-r--r-- | gcc/tree-complex.c | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/gcc/tree-complex.c b/gcc/tree-complex.c index 3f479edad03..71ebeacc408 100644 --- a/gcc/tree-complex.c +++ b/gcc/tree-complex.c @@ -1060,11 +1060,6 @@ expand_complex_div_wide (block_stmt_iterator *bsi, tree inner_type, bb_true = create_empty_bb (bb_cond); bb_false = create_empty_bb (bb_true); - t1 = build1 (GOTO_EXPR, void_type_node, tree_block_label (bb_true)); - t2 = build1 (GOTO_EXPR, void_type_node, tree_block_label (bb_false)); - COND_EXPR_THEN (cond) = t1; - COND_EXPR_ELSE (cond) = t2; - /* Wire the blocks together. */ e->flags = EDGE_TRUE_VALUE; redirect_edge_succ (e, bb_true); @@ -1377,8 +1372,15 @@ expand_complex_operations_1 (block_stmt_iterator *bsi) default: { - tree lhs = GENERIC_TREE_OPERAND (stmt, 0); - tree rhs = GENERIC_TREE_OPERAND (stmt, 1); + tree lhs, rhs; + + /* COND_EXPR may also fallthru here, but we do not need to do anything + with it. */ + if (TREE_CODE (stmt) != GIMPLE_MODIFY_STMT) + return; + + lhs = GIMPLE_STMT_OPERAND (stmt, 0); + rhs = GIMPLE_STMT_OPERAND (stmt, 1); if (TREE_CODE (type) == COMPLEX_TYPE) expand_complex_move (bsi, stmt, type, lhs, rhs); |