aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/module.cc
diff options
context:
space:
mode:
authorPan Li <pan2.li@intel.com>2024-05-23 08:09:40 +0800
committerPan Li <pan2.li@intel.com>2024-05-23 22:46:43 +0800
commitdca3e6b9049ff3c1432d4717ca2309e7aad20447 (patch)
tree26daa9d000853416e33ee11e620b1395c6c463d6 /gcc/cp/module.cc
parent2b2476d4d18c92b8aba3567ebccd2100c2f7c258 (diff)
downloadgcc-dca3e6b9049ff3c1432d4717ca2309e7aad20447.zip
gcc-dca3e6b9049ff3c1432d4717ca2309e7aad20447.tar.gz
gcc-dca3e6b9049ff3c1432d4717ca2309e7aad20447.tar.bz2
Match: Add overloaded types_match to avoid code dup [NFC]
There are sorts of match pattern for SAT related cases, there will be some duplicated code to check the dest, op_0, op_1 are same tree types. Aka ternary tree type matches. Thus, add overloaded types_match func do this and avoid match code duplication. The below test suites are passed for this patch: * The rv64gcv fully regression test. * The x86 bootstrap test. * The x86 regression test. gcc/ChangeLog: * generic-match-head.cc (types_match): Add overloaded types_match for 3 types. * gimple-match-head.cc (types_match): Ditto. * match.pd: Leverage overloaded types_match. Signed-off-by: Pan Li <pan2.li@intel.com>
Diffstat (limited to 'gcc/cp/module.cc')
0 files changed, 0 insertions, 0 deletions