This is the mail archive of the gcc@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: generate RTL sequence


daniel tian <daniel.xntian@gmail.com> writes:

>     I have a problem about RTL sequence.
>     If I wanna generate the RTL in sequence, and don't let gcc to schedule them.
>     Like the following(all the variable is rtx):
>
>     emit_insn(reg0,  operands[0]);
>     emit_insn(reg1,  reg0);
>     emit_insn(operands[0],  reg1);
>
>     But gcc will will reorder the three rtl in optimization.
>     I just wanna the those rtl in one block as a unit, don't let the
> gcc disrupt the sequence.
>     How can I do it?

Write a single define_insn which emits the instructions you want to
treat as a unit.

Ian


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