Commit 36159cf8 by Richard Guenther Committed by Richard Biener

re PR middle-end/37078 (ICE in set_value_range, at tree-vrp.c:401 when compiling gmp 4.2.3)

2008-08-22  Richard Guenther  <rguenther@suse.de>

	PR tree-optimization/37078
	* tree-vrp.c (extract_range_from_unary_expr): Avoid generating
	[+INF, +INF] ranges.

	* gcc.c-torture/compile/pr37078.c: New testcase.

From-SVN: r139501
parent d3cbd7de
2008-08-22 Richard Guenther <rguenther@suse.de> 2008-08-22 Richard Guenther <rguenther@suse.de>
PR tree-optimization/37078
* tree-vrp.c (extract_range_from_unary_expr): Avoid generating
[+INF, +INF] ranges.
2008-08-22 Richard Guenther <rguenther@suse.de>
PR tree-optimization/37143 PR tree-optimization/37143
* tree-vect-transform.c (vect_create_cond_for_align_checks): Build * tree-vect-transform.c (vect_create_cond_for_align_checks): Build
a conversion statement instead of a copy. a conversion statement instead of a copy.
......
2008-08-22 Richard Guenther <rguenther@suse.de> 2008-08-22 Richard Guenther <rguenther@suse.de>
PR tree-optimization/37078
* gcc.c-torture/compile/pr37078.c: New testcase.
2008-08-22 Richard Guenther <rguenther@suse.de>
PR tree-optimization/37143 PR tree-optimization/37143
* g++.dg/vect/pr37143.C: New testcase. * g++.dg/vect/pr37143.C: New testcase.
......
int foo (int b)
{
if (b == (int)0x80000000)
return __builtin_abs (b);
return 0;
}
...@@ -7459,7 +7459,8 @@ vect_create_cond_for_align_checks (loop_vec_info loop_vinfo, ...@@ -7459,7 +7459,8 @@ vect_create_cond_for_align_checks (loop_vec_info loop_vinfo,
addr_tmp = create_tmp_var (int_ptrsize_type, tmp_name); addr_tmp = create_tmp_var (int_ptrsize_type, tmp_name);
add_referenced_var (addr_tmp); add_referenced_var (addr_tmp);
addr_tmp_name = make_ssa_name (addr_tmp, NULL); addr_tmp_name = make_ssa_name (addr_tmp, NULL);
addr_stmt = gimple_build_assign (addr_tmp_name, addr_base); addr_stmt = gimple_build_assign_with_ops (NOP_EXPR, addr_tmp_name,
addr_base, NULL_TREE);
SSA_NAME_DEF_STMT (addr_tmp_name) = addr_stmt; SSA_NAME_DEF_STMT (addr_tmp_name) = addr_stmt;
gimple_seq_add_stmt (cond_expr_stmt_list, addr_stmt); gimple_seq_add_stmt (cond_expr_stmt_list, addr_stmt);
......
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