diff options
author | Andrew Pinski <apinski@marvell.com> | 2023-04-28 13:06:51 -0700 |
---|---|---|
committer | Andrew Pinski <apinski@marvell.com> | 2023-05-02 14:46:39 -0700 |
commit | 33020780a9699f1146eeed61783cec89fde337a0 (patch) | |
tree | 89bad390e6545da95e55b57e0ad1585a3e159cf8 /gcc/gimple-range.cc | |
parent | 078339fc04f5de59e55de8c54f4504b7672d60d0 (diff) | |
download | gcc-33020780a9699f1146eeed61783cec89fde337a0.zip gcc-33020780a9699f1146eeed61783cec89fde337a0.tar.gz gcc-33020780a9699f1146eeed61783cec89fde337a0.tar.bz2 |
PHIOPT: small refactoring of match_simplify_replacement.
When I added diamond shaped form bb to match_simplify_replacement,
I copied the code to move the statement rather than factoring it
out to a new function. This does the refactoring to a new function
to avoid the duplicated code. It will make adding support for having
two statements to move easier (the second statement will only be a
conversion).
OK? Bootstrapped and tested on x86_64-linux-gnu.
gcc/ChangeLog:
* tree-ssa-phiopt.cc (move_stmt): New function.
(match_simplify_replacement): Use move_stmt instead
of the inlined version.
Diffstat (limited to 'gcc/gimple-range.cc')
0 files changed, 0 insertions, 0 deletions