This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Reload bug for PRE/POST INC/DEC targets, need advice


I wrote in a previous message:

> 1) Properly record r9 as containing pseudo 2973.
> 
>    This doesn't appear to be possible because the information that r9 currently
>    contains pseudo 2973 isn't retained anywhere by reload?
> 
> 2) Record the equivalence only if r9 is being copied to its assigned stack slot.
> 
>    The only problem I see is that reg_equiv_memory_location looks like:
> 
>    (mem:SI (plus:SI (reg:SI 14 r14)
>            (const int 720)))
> 
>    but our insn rtx contains:
> 
>    (mem:SI (plus:SI (reg:SI 14 r14)
>                     (const_int 700))
>                 (const_int 20)

I thought of another method:

3) Disable reload inheritance for is_modified_p() insns.

Toshi


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]