On 8/7/23 05:31, Manolis Tsamis wrote:
The stack pointer propagation fix 736f8fd3 turned out to be more restrictive
than needed by rejecting propagation of the stack pointer when REG_POINTER
didn't match.

This commit removes this check:
When the stack pointer is propagated it is fine for this to result in
REG_POINTER becoming true from false, which is what the original code checked.

This simplification makes the previously introduced function
maybe_copy_reg_attrs obsolete and the logic can be inlined at the call sites,
as it was before 736f8fd3.

gcc/ChangeLog:

        * regcprop.cc (maybe_copy_reg_attrs): Remove unnecessary function.
        (find_oldest_value_reg): Inline stack_pointer_rtx check.
        (copyprop_hardreg_forward_1): Inline stack_pointer_rtx check.
OK
jeff

Reply via email to