]> git.ipfire.org Git - thirdparty/gcc.git/commit
Match: Refactor the unsigned SAT_ADD match pattern [NFC]
authorPan Li <pan2.li@intel.com>
Mon, 11 Nov 2024 08:44:24 +0000 (16:44 +0800)
committerPan Li <pan2.li@intel.com>
Thu, 21 Nov 2024 14:15:50 +0000 (22:15 +0800)
commitfbca864a7bfff9f848733f676c3c9df133fba4b0
tree3573e6892181196af3ef9571cde7a68283be14cd
parentdbc38dd9e96a9995298da2478041bdbbf247c479
Match: Refactor the unsigned SAT_ADD match pattern [NFC]

This patch would like to refactor the unsigned SAT_ADD pattern by:
* Extract type check outside.
* Extract common sub pattern.
* Re-arrange the related match pattern forms together.
* Remove unnecessary helper pattern matches.

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 unsigned SAT_ADD match pattern.

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