[PATCH] nvptx: do not assume that crtl->is_leaf is unset
Jeff Law
law@redhat.com
Fri Dec 16 18:36:00 GMT 2016
On 12/16/2016 09:48 AM, Alexander Monakov wrote:
> Hi,
>
> Until a recent change, crtl->is_leaf was initialized only during IRA startup.
> On NVPTX, register allocation is not done, so the backend asserts that this
> field is unset, and recomputes it unconditionally.
>
> Now this field can be optionally set via ira_setup_eliminable_regset for
> register-pressure-sensitive optimizations, so the assumption in the backend no
> longer holds. Remove the assert, but avoid recomputing the field if it is
> already set, indicating that the function is known to be leaf.
>
> OK to apply?
>
> Thanks.
> Alexander
>
> PR target/78831
> * config/nvptx/nvptx.c (init_softstack_frame): Remove assert. Compute
> crtl->is_leaf only if unset. Adjust comment.
OK.
jeff
More information about the Gcc-patches
mailing list