* g++.dg/tree-ssa/pred-1.C: New testcase
* gcc.dg/tree-ssa/pred-1.c: New testcase
* cp-gimplify.c (genericize_continue_stmt): Force addition of
predict stmt.
From-SVN: r237068
+2016-06-02 Jan Hubicka <jh@suse.cz>
+
+ * cp-gimplify.c (genericize_continue_stmt): Force addition of
+ predict stmt.
+
2016-06-02 Paolo Carlini <paolo.carlini@oracle.com>
* decl.c (xref_tag_1): Change pairs of errors to error + inform.
tree label = get_bc_label (bc_continue);
location_t location = EXPR_LOCATION (*stmt_p);
tree jump = build1_loc (location, GOTO_EXPR, void_type_node, label);
- append_to_statement_list (pred, &stmt_list);
+ append_to_statement_list_force (pred, &stmt_list);
append_to_statement_list (jump, &stmt_list);
*stmt_p = stmt_list;
}
+2016-06-03 Jan Hubicka <jh@suse.cz>
+
+ * g++.dg/tree-ssa/pred-1.C: New testcase
+ * gcc.dg/tree-ssa/pred-1.c: New testcase
+
2016-06-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
PR target/70957
--- /dev/null
+/* { dg-do compile } */
+/* { dg-options "-O2 -fdump-tree-profile_estimate" } */
+int a[100];
+void foo(int);
+main()
+{
+ int i;
+ for (i=0;i<100;i++)
+ {
+ if (a[i])
+ continue;
+ foo(i);
+ }
+}
+// { dg-final { scan-tree-dump "continue heuristics" "profile_estimate" } }
--- /dev/null
+/* { dg-do compile } */
+/* { dg-options "-O2 -fdump-tree-profile_estimate" } */
+int a[100];
+void foo(int);
+int
+main()
+{
+ int i;
+ for (i=0;i<100;i++)
+ {
+ if (a[i])
+ continue;
+ foo(i);
+ }
+}
+// { dg-final { scan-tree-dump "continue heuristics" "profile_estimate" } }