summaryrefslogtreecommitdiff
path: root/gcc/tree-ssa-phiopt.c
diff options
context:
space:
mode:
authoraoliva <aoliva@138bc75d-0d04-0410-961f-82ee72b054a4>2009-09-08 17:39:42 +0000
committeraoliva <aoliva@138bc75d-0d04-0410-961f-82ee72b054a4>2009-09-08 17:39:42 +0000
commit445a6ba583c6691211b76f35fc79212cd805a99f (patch)
treeda84c374fe689105c440607cd4ff89344d5688a8 /gcc/tree-ssa-phiopt.c
parentb795c8d1f5cc95979bc8871b21fcb2896900d7fa (diff)
downloadgcc-445a6ba583c6691211b76f35fc79212cd805a99f.tar.gz
gcc/ChangeLog:
PR debug/41232 * tree-ssa-phiopt.c (minmax_replacement): Skip debug stmts in the middle block. gcc/testsuite/ChangeLog: PR debug/41232 * gcc.dg/pr41232.c: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@151519 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-ssa-phiopt.c')
-rw-r--r--gcc/tree-ssa-phiopt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/tree-ssa-phiopt.c b/gcc/tree-ssa-phiopt.c
index b809ab30f8d..3accbbc2bb1 100644
--- a/gcc/tree-ssa-phiopt.c
+++ b/gcc/tree-ssa-phiopt.c
@@ -857,7 +857,7 @@ minmax_replacement (basic_block cond_bb, basic_block middle_bb,
/* Move the statement from the middle block. */
gsi = gsi_last_bb (cond_bb);
- gsi_from = gsi_last_bb (middle_bb);
+ gsi_from = gsi_last_nondebug_bb (middle_bb);
gsi_move_before (&gsi_from, &gsi);
}