Commit 227c4bc7 by Andrew Pinski Committed by Andrew Pinski

re PR tree-optimization/17902 (ICE from tree_verify_flow_info)

2004-10-08  Andrew Pinski  <pinskia@physics.uc.edu>

        PR tree-opt/17902
        * tree-ssa-phiopt.c (conditional_replacement): Use bsi_after_labels
        instead of bsi_start.
        (value_replacement): Likewise.
        (abs_replacement): Likewise

From-SVN: r88801
parent b7211528
2004-10-08 Andrew Pinski <pinskia@physics.uc.edu>
PR tree-opt/17902
* tree-ssa-phiopt.c (conditional_replacement): Use bsi_after_labels
instead of bsi_start.
(value_replacement): Likewise.
(abs_replacement): Likewise
2004-10-09 Steven Bosscher <stevenb@suse.de> 2004-10-09 Steven Bosscher <stevenb@suse.de>
* cfgexpand.c (maybe_dump_rtl_for_tree_stmt): New function. * cfgexpand.c (maybe_dump_rtl_for_tree_stmt): New function.
......
...@@ -332,7 +332,7 @@ conditional_replacement (basic_block bb, tree phi, tree arg0, tree arg1) ...@@ -332,7 +332,7 @@ conditional_replacement (basic_block bb, tree phi, tree arg0, tree arg1)
extract_true_false_edges_from_block (cond_block, &true_edge, &false_edge); extract_true_false_edges_from_block (cond_block, &true_edge, &false_edge);
/* Insert our new statement at the head of our block. */ /* Insert our new statement at the head of our block. */
bsi = bsi_start (bb); bsi = bsi_after_labels (bb);
if (old_result) if (old_result)
{ {
...@@ -485,7 +485,7 @@ value_replacement (basic_block bb, tree phi, tree arg0, tree arg1) ...@@ -485,7 +485,7 @@ value_replacement (basic_block bb, tree phi, tree arg0, tree arg1)
/* Build the new assignment. */ /* Build the new assignment. */
new = build (MODIFY_EXPR, TREE_TYPE (result), result, arg); new = build (MODIFY_EXPR, TREE_TYPE (result), result, arg);
replace_phi_with_stmt (bsi_start (bb), bb, cond_block, phi, new); replace_phi_with_stmt (bsi_after_labels (bb), bb, cond_block, phi, new);
/* Note that we optimized this PHI. */ /* Note that we optimized this PHI. */
return true; return true;
...@@ -621,7 +621,7 @@ abs_replacement (basic_block bb, tree phi, tree arg0, tree arg1) ...@@ -621,7 +621,7 @@ abs_replacement (basic_block bb, tree phi, tree arg0, tree arg1)
new = build (MODIFY_EXPR, TREE_TYPE (lhs), new = build (MODIFY_EXPR, TREE_TYPE (lhs),
lhs, build1 (ABS_EXPR, TREE_TYPE (lhs), rhs)); lhs, build1 (ABS_EXPR, TREE_TYPE (lhs), rhs));
replace_phi_with_stmt (bsi_start (bb), bb, cond_block, phi, new); replace_phi_with_stmt (bsi_after_labels (bb), bb, cond_block, phi, new);
if (negate) if (negate)
{ {
......
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