+2007-09-07 Richard Guenther <rguenther@suse.de>
+ Uros Bizjak <ubizjak@gmail.com>
+
+ PR tree-optimization/32821
+ * tree_if_conv.c (combine_blocks): Use alloc_stmt_list instead of
+ NULL in the call to set_bb_stmt_list.
+
2007-09-07 Richard Sandiford <richard@codesourcery.com>
* config/mips/mips.c (build_mips16_call_stub): Emit all direct
+2007-09-07 Uros Bizjak <ubizjak@gmail.com>
+
+ PR tree-optimization/32821
+ * gcc.dg/tree-ssa/pr32821.c: New file.
+
2007-09-07 Richard Sandiford <richard@codesourcery.com>
* gcc.dg/attr-alias-3.c: Use real asm for MIPS.
--- /dev/null
+/* { dg-do compile } */
+/* { dg-options "-O2 -ftree-vectorize -fdump-tree-ifcvt-details" } */
+
+void
+main1 (int *arr, int n, int a, int b)
+{
+ int i;
+ for (i = 0; i < n; i++)
+ {
+ int m = arr[i];
+ arr[i] = (m < a ? m - a : b);
+ }
+}
+
+/* { dg-final { cleanup-tree-dump "ifcvt" } } */
/* Update stmt list. */
last = tsi_last (bb_stmt_list (merge_target_bb));
tsi_link_after (&last, bb_stmt_list (bb), TSI_NEW_STMT);
- set_bb_stmt_list (bb, NULL);
+ set_bb_stmt_list (bb, alloc_stmt_list());
delete_basic_block (bb);
}