gimple.c (canonicalize_cond_expr_cond): (bool)x is not the same as x != 0.
authorRichard Guenther <rguenther@suse.de>
Thu, 16 Jun 2011 08:41:50 +0000 (08:41 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Thu, 16 Jun 2011 08:41:50 +0000 (08:41 +0000)
commit12430896397b7477294814403674d75e668f9f22
treeb02d925dc44622ca4d0a8f09518f68c6859d3dce
parente641e49532dd7a8ad66611de27c8f76abb17dfc3
gimple.c (canonicalize_cond_expr_cond): (bool)x is not the same as x != 0.

2011-06-16  Richard Guenther  <rguenther@suse.de>

* gimple.c (canonicalize_cond_expr_cond): (bool)x is not
the same as x != 0.
* fold-const.c (fold_binary_loc): Do not fold X & 1 != 0 to
(bool) X & 1.
* ipa-prop.c (ipa_analyze_indirect_call_uses): Also allow
equality compares against zero for the lower bit.

From-SVN: r175096
gcc/ChangeLog
gcc/fold-const.c
gcc/gimple.c
gcc/ipa-prop.c