diff options
author | Andrew Pinski <apinski@marvell.com> | 2023-09-10 21:58:12 -0700 |
---|---|---|
committer | Andrew Pinski <apinski@marvell.com> | 2023-09-11 07:24:29 -0700 |
commit | b59e9de990a17bfd5fa7252b76339c35bff7f2e8 (patch) | |
tree | 1cfb79537e207fe0e311cdd4a46c36cc92e126b8 /gcc/gimple-loop-interchange.cc | |
parent | f1dd83b720e0e7ce4e419f33a692a6df684708df (diff) | |
download | gcc-b59e9de990a17bfd5fa7252b76339c35bff7f2e8.zip gcc-b59e9de990a17bfd5fa7252b76339c35bff7f2e8.tar.gz gcc-b59e9de990a17bfd5fa7252b76339c35bff7f2e8.tar.bz2 |
MATCH: [PR111349] add missing :c to cmp in the `(a CMP CST1) ? max<a,CST2> : a` pattern
When I added this pattern in r14-1411-g17cca3c43e2f49, 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/111349
gcc/ChangeLog:
* match.pd (`(a CMP CST1) ? max<a,CST2> : a`): Add :c on
the cmp part of the pattern.
gcc/testsuite/ChangeLog:
* gcc.dg/tree-ssa/minmax-25.c: New test.
Diffstat (limited to 'gcc/gimple-loop-interchange.cc')
0 files changed, 0 insertions, 0 deletions