2006-06-15 Richard Guenther <rguenther@suse.de>
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 15 Jun 2006 18:55:18 +0000 (18:55 +0000)
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 15 Jun 2006 18:55:18 +0000 (18:55 +0000)
commit6758b11cdbe147d35f40049e3d31716c7c22e255
treecaac830c9d00c0c5dec714e1584bbeae8d74ae22
parentc735bacacfb312db3b12a7f72f06032711344a57
2006-06-15  Richard Guenther  <rguenther@suse.de>

* fold-const.c (fold_truth_not_expr): Rename from
invert_truthvalue.  Give it fold_* semantics to avoid
generating garbage.
(invert_truthvalue): New function.  Wrapper around
fold_truth_not_expr.
(optimize_minmax_comparison): Avoid creating garbage.
(fold_unary): Use fold_truth_not_expr for folding
TRUTH_NOT_EXPR.
(fold_ternary): Replace uses of invert_truthvalue with
fold_truth_not_expr where applicable.
* tree.h (fold_truth_not_expr): Prototype.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@114683 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/fold-const.c
gcc/tree.h