tree-vrp.c (op_with_constant_singleton_value_range): New function.
authorRichard Guenther <rguenther@suse.de>
Wed, 20 Aug 2008 16:01:59 +0000 (16:01 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Wed, 20 Aug 2008 16:01:59 +0000 (16:01 +0000)
commit73019a428f45b47ebae03a759afd7f3501c165db
tree419cd5f1c04c0deebf41c1385131c1fc52352584
parente2104f59c475b30f600bdd812904a508a2d15721
tree-vrp.c (op_with_constant_singleton_value_range): New function.

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

* tree-vrp.c (op_with_constant_singleton_value_range): New function.
(extract_range_from_binary_expr): Fall back to constant propagation.
(extract_range_from_unary_expr): Likewise.

* gcc.dg/tree-ssa/pr21829.c: Scan optimized and cddce2 dumps
instead of phicprop2.  Make sure all is fine after cddce2,
add an XFAILed scan for merging the two remaining ifs.

From-SVN: r139326
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/tree-ssa/pr21829.c
gcc/tree-vrp.c