]> git.ipfire.org Git - thirdparty/gcc.git/commit
Match: Refactor the signed SAT_SUB match patterns [NFC]
authorPan Li <pan2.li@intel.com>
Wed, 11 Dec 2024 11:09:08 +0000 (19:09 +0800)
committerPan Li <pan2.li@intel.com>
Tue, 7 Jan 2025 23:35:26 +0000 (07:35 +0800)
commit5080dbb807063061dbbe0a497d04629575f8c2af
tree1707496b70c8d7b4b49e89d75ae378f3859c0dfb
parentb755c151fde4ad736405bb2e13a7de0420161179
Match: Refactor the signed SAT_SUB match patterns [NFC]

This patch would like to refactor the all signed SAT_ADD patterns,
aka:
* Extract type check outside.
* Re-arrange the related match pattern forms together.

The below test suites are passed for this patch.
* The rv64gcv fully regression test.
* The x86 bootstrap test.
* The x86 fully regression test.

gcc/ChangeLog:

* match.pd: Refactor sorts of signed SAT_SUB match patterns.

Signed-off-by: Pan Li <pan2.li@intel.com>
gcc/match.pd