On 4/28/23 11:02, Andrew Pinski via Gcc-patches wrote:
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.
OK
jeff

Reply via email to