This is the mail archive of the gcc-patches@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: [PATCH] ira: volatile asm's are not moveable (PR82602)


Hi Segher,

the patch looks ok for me.
Just for my understanding:
A memory clobber would also make rtx_moveable_p return false,
thru the following case:

    case MEM:
      if (type == OP_IN && MEM_READONLY_P (x))
        return rtx_moveable_p (&XEXP (x, 0), OP_IN);
      return false;

...

    case CLOBBER:
      return rtx_moveable_p (&SET_DEST (x), OP_OUT);


because that memory clobber is in a parallel statement
together with the ASM_OUTPUT.

Right?


Bernd.

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