https://gcc.gnu.org/bugzilla/show_bug.cgi?id=126956
--- Comment #2 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The trunk branch has been updated by Andrea Pinski <[email protected]>: https://gcc.gnu.org/g:bfd190682ca8e21b66843f5aab180dbdbf9f664c commit r17-3528-gbfd190682ca8e21b66843f5aab180dbdbf9f664c Author: Andrea Pinski <[email protected]> Date: Thu Aug 20 23:51:36 2026 -0700 match: simplify cond_carry_add and cond_carry_add_neg match by using `:c` [PR126956] cond_carry_add and cond_carry_add_neg currently spells out `lt`/`le` and `gt`/`ge` with the operands swapped. We can simplify the pattern as written to make it easier for a developer to only need to change one pattern by using `:c`. Pushed as obvious after a bootstrap/test on x86_64-linux-gnu. Also looked into the generated code from genmatch to see the code is exactly the same as before. PR tree-optimization/126956 gcc/ChangeLog: * match.pd (cond_carry_add): Use `:c` instead of manually swapping the comparison and operands. (cond_carry_add_neg): Likewise. Signed-off-by: Andrea Pinski <[email protected]>
