re PR tree-optimization/25148 (compare_values assumes that CST in a + CST (and a...
authorRichard Guenther <rguenther@suse.de>
Thu, 27 Apr 2006 13:52:44 +0000 (13:52 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Thu, 27 Apr 2006 13:52:44 +0000 (13:52 +0000)
commit67ac6e637c33f25f2199d20882babd47e926c6d5
tree2be2839b78c9aa92f56204a43ca3cf7bed9461c9
parent869170df101966edf90211387ba803c76e61f212
re PR tree-optimization/25148 (compare_values assumes that CST in a + CST (and a - CST) is always postive)

2006-04-27  Richard Guenther  <rguenther@suse.de>

PR tree-optimization/25148
* tree-vrp.c (compare_values): Remove code dealing with
comparisons against type min/max value.  Honour overflow
and negative constants in code dealing with comparisons
of plus and minus expressions.
(value_inside_range): Use fold_binary with LE_EXPR and
GE_EXPR rather than compare_values.

From-SVN: r113298
gcc/ChangeLog
gcc/tree-vrp.c