diff options
author | Andrew Pinski <apinski@marvell.com> | 2023-04-09 00:20:30 +0000 |
---|---|---|
committer | Andrew Pinski <apinski@marvell.com> | 2023-04-30 13:35:36 -0700 |
commit | 55b708895149ac5e108f50150e12a3c5ba00e83d (patch) | |
tree | 2a56dc71f8fdd805edadbfd4704510d45469dbf1 /gcc/value-range.h | |
parent | 84e7d62c3bccb5e5ff9c37353b026f48e1148450 (diff) | |
download | gcc-55b708895149ac5e108f50150e12a3c5ba00e83d.zip gcc-55b708895149ac5e108f50150e12a3c5ba00e83d.tar.gz gcc-55b708895149ac5e108f50150e12a3c5ba00e83d.tar.bz2 |
PHIOPT: Allow moving of some builtin calls
While moving working on moving
cond_removal_in_builtin_zero_pattern to match, I noticed
that functions were not allowed to move as we reject all
non-assignments.
This changes to allowing a few calls which are known not
to throw/trap. Right now it is restricted to ones
which cond_removal_in_builtin_zero_pattern handles but
adding more is just adding it to the switch statement.
gcc/ChangeLog:
* tree-ssa-phiopt.cc (empty_bb_or_one_feeding_into_p):
Allow some builtin/internal function calls which
are known not to trap/throw.
(phiopt_worker::match_simplify_replacement):
Use name instead of getting the lhs again.
Diffstat (limited to 'gcc/value-range.h')
0 files changed, 0 insertions, 0 deletions