Commit 279f3eb5 by Jeff Law Committed by Richard Biener

re PR tree-optimization/15911 (VRP/DOM does not like TRUTH_AND_EXPR)

2006-10-22  Jeff Law  <law@redhat.com>
	Richard Guenther  <rguenther@suse.de>

	PR tree-optimization/15911
	* tree-vrp.c (extract_code_and_val_from_cond): New function.
	(register_edge_assert_for_1): Likewise.
	(register_edge_assert_for): Handle &&/&/||/| in conditionals.
	(find_conditional_asserts): Adjust for new function signature.
	(find_assert_locations): Likewise.

	* gcc.dg/tree-ssa/vrp30.c: New testcase.

Co-Authored-By: Richard Guenther <rguenther@suse.de>

From-SVN: r117960
parent c0546edb
2006-10-22 Jeff Law <law@redhat.com>
Richard Guenther <rguenther@suse.de>
PR tree-optimization/15911
* tree-vrp.c (extract_code_and_val_from_cond): New function.
(register_edge_assert_for_1): Likewise.
(register_edge_assert_for): Handle &&/&/||/| in conditionals.
(find_conditional_asserts): Adjust for new function signature.
(find_assert_locations): Likewise.
2006-10-22 H.J. Lu <hongjiu.lu@intel.com>
* config/i386/tmmintrin.h: Remove the duplicated content.
......
2006-10-22 Jeff Law <law@redhat.com>
Richard Guenther <rguenther@suse.de>
PR tree-optimization/15911
* gcc.dg/tree-ssa/vrp30.c: New testcase.
2006-10-22 Nathan Sidwell <nathan@codesourcery.com>
PR c++/20647
/* { dg-do link } */
/* { dg-options "-O2" } */
extern int link_error (int);
int tst2 (int x, int y)
{
/* VRP should be able to extract range information for
x and y out of this TRUTH_AND_EXPR. */
if ((x > 5555) && (y < 6666))
{
if (x > 5555)
if (y < 6666)
return 1111;
else
return link_error (2222);
else
if (y < 6666)
return link_error (3333);
else
return link_error (4444);
}
else
return 0;
}
int main()
{
return 0;
}
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