diff options
Diffstat (limited to 'gcc/fold-const.c')
| -rw-r--r-- | gcc/fold-const.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/gcc/fold-const.c b/gcc/fold-const.c index 956478a..9178a344 100644 --- a/gcc/fold-const.c +++ b/gcc/fold-const.c @@ -5423,10 +5423,7 @@ fold (tree expr) if (op == 0) continue; /* Valid for CALL_EXPR, at least. */ - if (kind == '<' - || code == MAX_EXPR - || code == MIN_EXPR - || code == RSHIFT_EXPR) + if (kind == '<' || code == RSHIFT_EXPR) { /* Signedness matters here. Perhaps we can refine this later. */ @@ -5459,7 +5456,8 @@ fold (tree expr) to ARG1 to reduce the number of tests below. */ if (commutative_tree_code (code) && tree_swap_operands_p (arg0, arg1, true)) - return fold (build (code, type, arg1, arg0)); + return fold (build (code, type, TREE_OPERAND (t, 1), + TREE_OPERAND (t, 0))); /* Now WINS is set as described above, ARG0 is the first operand of EXPR, |
