[PATCH] Improve prepare_shrink_wrap to sink more instructions

Jeff Law law@redhat.com
Mon Sep 15 21:19:00 GMT 2014


On 09/11/14 14:58, Wang Jiong wrote:

>     the reg_found will record the # of registers, and there will be a
> check to make sure no register or just 1 register in the src.
>     so if "reg_found" is bigger than 1, then src will be assigned to
> NULL_RTX, that we just stop the move.
>
>    +      if (arg.nonconst_found
>    +          || arg.reg_found > 1)
>    +    src = NULL_RTX;
>
>    am I missing something here?
No, I was just reiterating that you are going to need that code, so some 
kind of walker would still be necessary.  Sorry I wasn't clear about that.

jeff



More information about the Gcc-patches mailing list