gimple-fold.c (replace_stmt_with_simplification): Special-case valueizing call operands.
authorRichard Biener <rguenther@suse.de>
Fri, 24 Jul 2015 08:25:41 +0000 (08:25 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Fri, 24 Jul 2015 08:25:41 +0000 (08:25 +0000)
commit37d486ab11c0d4f1e860b6dbc46e2e94bb8f0647
tree762fcfff7fe872d4458ad5bab5afaf8c962e9a5b
parent74b7ec8c45c8db5df69e7a9894e6306e1d631a58
gimple-fold.c (replace_stmt_with_simplification): Special-case valueizing call operands.

2015-07-24  Richard Biener  <rguenther@suse.de>

* gimple-fold.c (replace_stmt_with_simplification): Special-case
valueizing call operands.
* gimple-match-head.c (maybe_push_res_to_seq): Take
number of call arguments from ops array.
(do_valueize): New function.
(gimple_simplify): Return true if valueization changed
any operand even if the result didn't simplify further.

From-SVN: r226139
gcc/ChangeLog
gcc/gimple-fold.c
gcc/gimple-match-head.c