diff options
author | Richard Biener <rguenther@suse.de> | 2024-10-12 14:51:37 +0200 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2024-10-12 17:04:31 +0200 |
commit | f54d42e00007e7a558b273d87f95b3e5b1938f5a (patch) | |
tree | edd7de0ce2e0fd0a9a6f93451bb030959ed98d53 /gcc/fortran | |
parent | ba773a86f0377abccecd3e398dceb9408bba5a7c (diff) | |
download | gcc-f54d42e00007e7a558b273d87f95b3e5b1938f5a.zip gcc-f54d42e00007e7a558b273d87f95b3e5b1938f5a.tar.gz gcc-f54d42e00007e7a558b273d87f95b3e5b1938f5a.tar.bz2 |
tree-optimization/117104 - add missed guards to max(a,b) != a simplification
For vector types we have to make sure the comparison result is a vector
type and the resulting compare operation is supported. As the resulting
compare is never an equality compare I didn't bother to check for the
cbranch case.
PR tree-optimization/117104
* match.pd ((cmp:c (minmax:c @0 @1) @0) -> (out @0 @1)): Properly
guard the vector case.
* gcc.dg/pr117104.c: New testcase.
Diffstat (limited to 'gcc/fortran')
0 files changed, 0 insertions, 0 deletions