Commit bfeee8ac by Jan Hubicka Committed by Jan Hubicka

pred-1.C: New testcase


	* 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
parent 859b0bae
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.
......
......@@ -362,7 +362,7 @@ genericize_continue_stmt (tree *stmt_p)
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
......
/* { 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" } }
/* { 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" } }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment