> I see, you mean at the beginning of frm_after, we can just return the 
> incoming mode as is?
> 
> If (CALL_P (insn))
>   return mode; // Given we aware the mode is DYN_CALL already.

Yes, potentially similar for all the other ifs but I didn't check
all of them.

> Thank and will cleanup this in v8. AFAIK, the optimize_mode_switching
> only check ptr->mode != no_mode before emit, not sure if I missed
> something.

 if (mode != no_mode && mode != last_mode)
    {

Shouldn't this cover us?  I didn't run the testsuite or so but it looks
like it.

Regards
 Robin

Reply via email to