aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-ssa-phiopt.c
diff options
context:
space:
mode:
authorAndrew Pinski <pinskia@physics.uc.edu>2004-10-08 23:25:49 +0000
committerAndrew Pinski <pinskia@gcc.gnu.org>2004-10-08 16:25:49 -0700
commit227c4bc7af8e39d24f3f9ba96037c0254720075d (patch)
treec69ba6c43550db950db71b2c567d5f36068327f6 /gcc/tree-ssa-phiopt.c
parentb7211528d51b9069f57eef8f0bde905618ba8fce (diff)
downloadgcc-227c4bc7af8e39d24f3f9ba96037c0254720075d.zip
gcc-227c4bc7af8e39d24f3f9ba96037c0254720075d.tar.gz
gcc-227c4bc7af8e39d24f3f9ba96037c0254720075d.tar.bz2
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
Diffstat (limited to 'gcc/tree-ssa-phiopt.c')
-rw-r--r--gcc/tree-ssa-phiopt.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/tree-ssa-phiopt.c b/gcc/tree-ssa-phiopt.c
index 7c38b8a..2b415a6 100644
--- a/gcc/tree-ssa-phiopt.c
+++ b/gcc/tree-ssa-phiopt.c
@@ -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);
/* Insert our new statement at the head of our block. */
- bsi = bsi_start (bb);
+ bsi = bsi_after_labels (bb);
if (old_result)
{
@@ -485,7 +485,7 @@ value_replacement (basic_block bb, tree phi, tree arg0, tree arg1)
/* Build the new assignment. */
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. */
return true;
@@ -621,7 +621,7 @@ abs_replacement (basic_block bb, tree phi, tree arg0, tree arg1)
new = build (MODIFY_EXPR, TREE_TYPE (lhs),
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)
{