diff options
author | Richard Biener <rguenther@suse.de> | 2022-05-13 09:35:30 +0200 |
---|---|---|
committer | Richard Biener <rguenther@suse.de> | 2022-05-16 08:23:39 +0200 |
commit | 9a53101caadae1b5c8d791d247b05268ee4f7f92 (patch) | |
tree | 040afa50012036ba4b92a2438df74d3bd7bb2764 /gcc/fortran/openmp.cc | |
parent | 69c4b5c519f0df37e4903992644cc29682721bc1 (diff) | |
download | gcc-9a53101caadae1b5c8d791d247b05268ee4f7f92.zip gcc-9a53101caadae1b5c8d791d247b05268ee4f7f92.tar.gz gcc-9a53101caadae1b5c8d791d247b05268ee4f7f92.tar.bz2 |
Add MIN/MAX folding from fold_cond_expr_with_comparison to match.pd
The following adds MIN/MAX folding from fold_cond_expr_with_comparison
to the part GIMPLE of match.pd, leaving the GENERIC part in
fold-const.cc since that's constrainted on frontend specific things
I did not want to carry to match.pd.
The effect becomes appearant when we no longer can rely on GENERIC
folding of COND_EXPRs in gcc.dg/tree-ssa/pr92834.c and
gcc.dg/tree-ssa/pr94786.c.
2022-05-13 Richard Biener <rguenther@suse.de>
* match.pd (A cmp B ? A : B -> min/max): New patterns
carried over from fold_cond_expr_with_comparison.
Diffstat (limited to 'gcc/fortran/openmp.cc')
0 files changed, 0 insertions, 0 deletions