This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
The following patch fixes PR 20470. We were missing fold opportunities for "A op 0 ? A : -A" when A was of the form 'X-Y'. A question I had on the patch was whether the call to negate_expr_p(arg2) was required to verify that it is safe to, in theory, negate arg2 back to the pattern trying to be matched. Bootstrap and regtested on powerpc64-unknown-linux-gnu. OK for mainline? -Pat (See attached file: patch.pr20470)
Attachment:
patch.pr20470
Description: Binary data
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |