r229430 - in /trunk/gcc: ChangeLog fold-const.c...
rsandifo@gcc.gnu.org
rsandifo@gcc.gnu.org
Tue Oct 27 11:56:00 GMT 2015
Author: rsandifo
Date: Tue Oct 27 11:56:18 2015
New Revision: 229430
URL: https://gcc.gnu.org/viewcvs?rev=229430&root=gcc&view=rev
Log:
Move min(max...) and max(min...) folds to match.pd
This handles both integer and floating-point arguments. It's needed
for the follow-on patch to move fmin and fmax to match.pd.
Tested on x86_64-linux-gnu, aarch64-linux-gnu and arm-linux-gnueabi.
gcc/
* fold-const.c (fold_minmax): Delete.
(fold_binary_loc): Don't call it.
* match.pd: Add rules previously handled by fold_minmax.
Modified:
trunk/gcc/ChangeLog
trunk/gcc/fold-const.c
trunk/gcc/match.pd
More information about the Gcc-cvs
mailing list