diff options
author | Andrew Pinski <apinski@marvell.com> | 2021-06-01 01:05:09 +0000 |
---|---|---|
committer | Andrew Pinski <apinski@marvell.com> | 2021-06-01 18:50:32 +0000 |
commit | 9f55df63154a39d67ef5b24def7044bf87300831 (patch) | |
tree | 112db297766b38cf773e61304c08db65f3927116 /gcc/tree-inline.c | |
parent | ea418485c700494c3efdc282854c5f5a08702416 (diff) | |
download | gcc-9f55df63154a39d67ef5b24def7044bf87300831.zip gcc-9f55df63154a39d67ef5b24def7044bf87300831.tar.gz gcc-9f55df63154a39d67ef5b24def7044bf87300831.tar.bz2 |
Replace conditional_replacement with match and simplify
This is the first of series of patches to simplify phi-opt
to use match and simplify in many cases. This simplification
will more things to optimize.
This is what Richard requested in
https://gcc.gnu.org/pipermail/gcc-patches/2021-May/571197.html
and I think it is the right thing to do too.
OK? Bootstrapped and tested on x86_64-linux-gnu with no regressions.
gcc/ChangeLog:
PR tree-optimization/25290
* tree-ssa-phiopt.c (match_simplify_replacement):
New function.
(tree_ssa_phiopt_worker): Use match_simplify_replacement.
(two_value_replacement): Change the comment about
conditional_replacement.
(conditional_replacement): Delete.
Diffstat (limited to 'gcc/tree-inline.c')
0 files changed, 0 insertions, 0 deletions