This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [atom]: PATCH: reg_mentioned_by_mem_p with DF
On Mon, Mar 30, 2009 at 4:53 AM, Paolo Bonzini <bonzini@gnu.org> wrote:
> Paolo Bonzini wrote:
>>>>>> As it is used by insn splitter and splitting can also happen during final
>>>>>> when DF isn't available, I don't see how this is a safe thing to do.
>>>>> Why do you think DF is not available in final?
>>>> I don't remember exactly, but I think Jakub is right. ?I don't think DF
>>>> is kept up to date by the last passes, especially after BLOCK_FOR_INSN
>>>> is unset.
>>> As far as I know, the df-scan info is also OK in final.
>>
>> It depends on the port, as it is not kept up to date after free_cfg.
>
> Also, at -O0 ports other than ix86 may indeed not rebuild the df-scan
> info after reload. ?This however is not true for ix86, since regstack
> does df_analyze.
>
As Joey mentioned, reg_mentioned_by_mem_p is used for splitting
on x86. Since it may not be safe for all targets, we will move it to
x86 backend.
Thanks.
--
H.J.