Rewrite part of and_comparisons_1 into match.pd.
authorMartin Liska <mliska@suse.cz>
Mon, 16 Sep 2019 14:22:36 +0000 (16:22 +0200)
committerMartin Liska <marxin@gcc.gnu.org>
Mon, 16 Sep 2019 14:22:36 +0000 (14:22 +0000)
commitae9c3507829ca139749ac3f9cf4a78707a036d3b
tree7638b464e77dcc7c79132b726b28dbfc8aa0f2a4
parentc16504f6eabad7e173e4fbcfacf52820fffcb9ec
Rewrite part of and_comparisons_1 into match.pd.

2019-09-16  Martin Liska  <mliska@suse.cz>

* genmatch.c (dt_node::append_simplify): Do not print
warning when we have duplicate patterns belonging
to a same simplify rule.
* gimple-fold.c (and_comparisons_1): Remove matching moved to match.pd.
(maybe_fold_comparisons_from_match_pd): Handle
tcc_comparison as a results.
* match.pd: Handle (X == CST1) && (X OP2 CST2) conditions.

From-SVN: r275750
gcc/ChangeLog
gcc/genmatch.c
gcc/gimple-fold.c
gcc/match.pd