aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-ssa-loop-ch.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/tree-ssa-loop-ch.c')
-rw-r--r--gcc/tree-ssa-loop-ch.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/tree-ssa-loop-ch.c b/gcc/tree-ssa-loop-ch.c
index 9f1f4c3..dffaf49 100644
--- a/gcc/tree-ssa-loop-ch.c
+++ b/gcc/tree-ssa-loop-ch.c
@@ -90,6 +90,9 @@ should_duplicate_loop_header_p (basic_block header, struct loop *loop,
if (gimple_code (last) == GIMPLE_LABEL)
continue;
+ if (is_gimple_debug (last))
+ continue;
+
if (is_gimple_call (last))
return false;