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

--- Comment #21 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Created attachment 47069
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=47069&action=edit
gcc10-prereload-splitters.patch

Ah, apparently we already have for ~ 2 years a property to handle this safely.
So perhaps following incremental (so far completely untested) patch?
It unfortunately requires the two generic changes, the alternative would be
to add a helper function somewhere in i386*.c which would
return can_create_pseudo_p () && !(cfun->curr_properties &
PROP_rtl_split_insns);
declare it in i386-protos.h and just use it in config/i386/*.md instead.
Any preferences?  From maintainance POV, it might be cleaner to have the
wrapper, but then the question is what is the best name for it.

Reply via email to