2008-08-29 Richard Guenther <rguenther@suse.de>
commiteb8b313af81929e569d7729872ebb95db543c480
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 29 Aug 2008 08:36:10 +0000 (29 08:36 +0000)
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 29 Aug 2008 08:36:10 +0000 (29 08:36 +0000)
tree81dde4fb09ba070d53dbbe9adb6f6574611ea46a
parentc0d40c29c39fe97e86b9cc59598dc4ece3487c63
2008-08-29  Richard Guenther  <rguenther@suse.de>

PR tree-optimization/37207
* tree-vrp.c (extract_range_from_binary_expr): Also try
to constant fold if only one of the operands is a constant.

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

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@139754 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/tree-ssa/vrp46.c [new file with mode: 0644]
gcc/tree-vrp.c