]> git.ipfire.org Git - thirdparty/gcc.git/commit
Match: Refactor the signed SAT_TRUNC match patterns [NFC]
authorPan Li <pan2.li@intel.com>
Wed, 11 Dec 2024 11:37:06 +0000 (19:37 +0800)
committerPan Li <pan2.li@intel.com>
Tue, 7 Jan 2025 23:35:36 +0000 (07:35 +0800)
commitd20e9b7b5a4dd99f0486d2b0a946208a9563e196
tree03de302a6bc6aa5ea8ea70a60a28bb24499f4e80
parent5080dbb807063061dbbe0a497d04629575f8c2af
Match: Refactor the signed SAT_TRUNC match patterns [NFC]

This patch would like to refactor the all signed SAT_TRUNC 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_TRUNC match patterns

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