This is the mail archive of the gcc-help@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: FAIL in movm pattern


Aurelien Buhrig <aurelien.buhrig.gcc@gmail.com> writes:

> When is it safe to generate a FAIL in the define_expand of a mov pattern?
> Is it enough to test !can_create_pseudo_p() before a FAIL ?
>
> If no such test is performed, some mov insns can be omitted (ex:
> expand_call/store_one_arg), without any error message or warning and
> it can be difficult to debug it.
> Is it a desirable behavior?

In general, a mov pattern may not FAIL.  The reload pass relies on the
ability to generate moves even when no pseudo-registers are available.

It's true that the middle-end does not use assertions to enforce this.

Ian


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