Move optimize_minmax_comparison to match.pd
authorMarc Glisse <marc.glisse@inria.fr>
Mon, 13 Jun 2016 11:21:45 +0000 (13:21 +0200)
committerMarc Glisse <glisse@gcc.gnu.org>
Mon, 13 Jun 2016 11:21:45 +0000 (11:21 +0000)
commitb4817bd63533bc94d7605eefbdebc06dc271a63d
tree75eb715e32ceaf45a547f7361431eb2526795c04
parent915794eb26eaafe970c4c9f9d7774b55c4b772b5
Move optimize_minmax_comparison to match.pd

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.

From-SVN: r237376
gcc/ChangeLog
gcc/fold-const.c
gcc/match.pd