Move optimize_minmax_comparison to match.pd

Marc Glisse marc.glisse@inria.fr
Sun Jun 12 08:30:00 GMT 2016


Hello,

this move is pretty straightforward. The transformation would probably 
work just fine for any type (floats, vectors), but I didn't want the 
headache of checking the behavior for NaN.

Bootstrap+regtest on powerpc64le-unknown-linux-gnu.

2016-06-13  Marc Glisse  <marc.glisse@inria.fr>

 	* fold-const.c (optimize_minmax_comparison): Remove.
 	(fold_comparison): Remove call to the above.
 	* match.pd (MIN (X, Y) == X, MIN (X, 5) == 0, MIN (X, C1) < C2):
 	New transformations.

-- 
Marc Glisse
-------------- next part --------------
A non-text attachment was scrubbed...
Name: minmax.diff
Type: text/x-diff
Size: 9173 bytes
Desc: 
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20160612/1fd0c85e/attachment.bin>


More information about the Gcc-patches mailing list