aboutsummaryrefslogtreecommitdiff
path: root/gcc/c
diff options
context:
space:
mode:
authorAndrew Pinski <apinski@marvell.com>2023-09-11 08:05:10 -0700
committerAndrew Pinski <apinski@marvell.com>2023-09-11 13:40:46 -0700
commit8fdf712a38422952bbcde7e22eabcf821e6676b3 (patch)
tree158137eb91c75efa3da7bf63c57e0653f7dcc629 /gcc/c
parent048927ed8561ca994ad853fe85ccf8c2ca07a8fe (diff)
downloadgcc-8fdf712a38422952bbcde7e22eabcf821e6676b3.zip
gcc-8fdf712a38422952bbcde7e22eabcf821e6676b3.tar.gz
gcc-8fdf712a38422952bbcde7e22eabcf821e6676b3.tar.bz2
MATCH: [PR111348] add missing :c to cmp in the `(a CMP b) ? minmax<a, c> : minmax<b, c>` pattern
When I added this pattern in r14-337-gc43819a9b4cd, I had missed the :c on the cmp part of the pattern meaning there might be some missing optimizations happening. The testcase shows an example of the missed optmization. Committed as obvious after a bootstrap/test on x86_64-linux-gnu. PR tree-optimization/111348 gcc/ChangeLog: * match.pd (`(a CMP b) ? minmax<a, c> : minmax<b, c>`): Add :c on the cmp part of the pattern. gcc/testsuite/ChangeLog: * gcc.dg/tree-ssa/minmax-26.c: New test.
Diffstat (limited to 'gcc/c')
0 files changed, 0 insertions, 0 deletions