https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78103

--- Comment #18 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
(In reply to Segher Boessenkool from comment #17)
> > Nothing changes for combine though, I think it really would be nice if it
> > could either change newly added pseudos from combine_split_insns by i2dest
> > if possible,
> 
> Is that ever safe to do?

Except for debug insns if the mode is the same and i2dest doesn't appear in
i2set nor i3set nor anything in between, why not?
As for debug insns, as I said earlier, the current code is reusing i2dest for
the splitting found by find_split_point.

> > or better handle new pseudos from both combine_split_insns and
> > when
> > for find_split_point i2dest can't be resued with creating LOG_LINKS.
> 
> You cannot safely attempt to combine the two insns split to again, neither
> alone nor in combination with other insns.  Since pretty much by definition
> that new reg will be set in the new i2 and used in (only) in the new i3,
> no combination with that new reg is valid ever?

Sure, combining those 2 insns can't be sucessful, otherwise it would have
matched earlier.  But they can be combined with other insns, say the first of
those 2 split insns being i0 and second i1 combined into some other i3 and i2,
or perhaps just split insns i1 and i2 combined into some other i3.

Reply via email to