Commit 5f7b2156 by Andrew Pinski Committed by Andrew Pinski

re PR tree-optimization/15777 (Fold does not always fold sub trees)

2004-07-07  Andrew Pinski  <apinski@apple.com>

        PR tree-optimization/15777
        * fold-const.c (fold_single_bit_test): Fold the x^1 expression.

From-SVN: r84231
parent 3a18db48
2004-07-07 Andrew Pinski <apinski@apple.com>
PR tree-optimization/15777
* fold-const.c (fold_single_bit_test): Fold the x^1 expression.
* expr.c (expand_expr_real_1): Fix formating.
BUFFER_REF and IN_EXPR are dead.
* fold-const.c (non_lvalue): BUFFER_REF is dead.
......
......@@ -5849,8 +5849,8 @@ fold_single_bit_test (enum tree_code code, tree arg0, tree arg1,
inner, size_int (bitnum));
if (code == EQ_EXPR)
inner = build2 (BIT_XOR_EXPR, intermediate_type,
inner, integer_one_node);
inner = fold (build2 (BIT_XOR_EXPR, intermediate_type,
inner, integer_one_node));
/* Put the AND last so it can combine with more things. */
inner = build2 (BIT_AND_EXPR, intermediate_type,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment