]> git.ipfire.org Git - thirdparty/gcc.git/commit
re PR tree-optimization/56365 (Missed opportunities for smin/smax standard name patte...
authorRichard Biener <rguenther@suse.de>
Mon, 14 Mar 2016 14:50:40 +0000 (14:50 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Mon, 14 Mar 2016 14:50:40 +0000 (14:50 +0000)
commita9fee7cdc3c62d0e51730b6a9814909c557d3070
treea213ec82574fdef415b804c92dfbd8051ee07fe2
parent4799603f1a0efdb385cc42268f8b379eb9240771
re PR tree-optimization/56365 (Missed opportunities for smin/smax standard name patterns when compiling as C++)

2016-03-14  Richard Biener  <rguenther@suse.de>

PR tree-optimization/56365
* tree-ssa-phiopt.c (minmax_replacement): Handle alternate
constants to compare against.

* gcc.dg/tree-ssa/phi-opt-14.c: New testcase.

From-SVN: r234183
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/tree-ssa/phi-opt-14.c [new file with mode: 0644]
gcc/tree-ssa-phiopt.c