diff options
Diffstat (limited to 'gcc/tree-if-conv.c')
-rw-r--r-- | gcc/tree-if-conv.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/tree-if-conv.c b/gcc/tree-if-conv.c index e2fce3c..a1803ff 100644 --- a/gcc/tree-if-conv.c +++ b/gcc/tree-if-conv.c @@ -2214,7 +2214,8 @@ predicate_mem_writes (loop_p loop) { if (!gimple_assign_single_p (stmt = gsi_stmt (gsi))) ; - else if (is_false_predicate (cond)) + else if (is_false_predicate (cond) + && gimple_vdef (stmt)) { unlink_stmt_vdef (stmt); gsi_remove (&gsi, true); |