]> git.ipfire.org Git - thirdparty/gcc.git/commit
Match: Refactor the signed SAT_ADD match patterns [NFC]
authorPan Li <pan2.li@intel.com>
Tue, 10 Dec 2024 06:27:53 +0000 (14:27 +0800)
committerPan Li <pan2.li@intel.com>
Sat, 21 Dec 2024 12:42:01 +0000 (20:42 +0800)
commit59e3abcb3625fd3d6f452a27671c8806c7a27b1b
treecc475a0e60d9466b84e3e9d859b43aefacae220c
parent0b63840e07132f727ca3fae1e0aa7255bacb8446
Match: Refactor the signed SAT_ADD 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_ADD match patterns.

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