This is the mail archive of the gcc@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]
Other format: [Raw text]

Re: Question on register renaming in rtl loop unroll pass


> The problem is auto-inc-dec is weak and can only capture
> post-increment in first part of code, generating even worse code for
> RA:
> .L1:
>   r197 <- r162
>   [r197++] <- x
>   ...
>   [r162+4] <- y
>   r162 <- r197+0x4
>   ...
>   b .L1
> Now we have two live registers and it seems hard to eliminate.
> 
> So could the unrolled codes be like below?

I'd try the opposite first, i.e to do more renaming so as to get smaller live 
ranges for the pseudo-registers and thus help the auto-inc-dec and RA passes.

-- 
Eric Botcazou


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