fold-const.c (fold_truth_not_expr): Rename from invert_truthvalue.
authorRichard Guenther <rguenther@suse.de>
Thu, 15 Jun 2006 18:55:18 +0000 (18:55 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Thu, 15 Jun 2006 18:55:18 +0000 (18:55 +0000)
commitd817ed3b10f38c21cda334293e0fb969cb03e2c5
treecaac830c9d00c0c5dec714e1584bbeae8d74ae22
parent5cf0aa0a315f54b23f311605171579367a8258f5
fold-const.c (fold_truth_not_expr): Rename from invert_truthvalue.

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.

From-SVN: r114683
gcc/ChangeLog
gcc/fold-const.c
gcc/tree.h