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: GCC Eliminates my Custom RTL ..How to stop this?


"Balaji V. Iyer" <bviyer@ncsu.edu> writes:

> I am not using the unspec model. I created a new RTL in rtl.def, then I
> am inserting that RTL at fixed points of my code, and have a constraint
> in my .md file to catch that RTL and convert it into an instruction.

Your RTL must describe its inputs and outputs.  If the outputs are not
used anywhere, gcc will delete the instruction.  If you can not
properly describe the outputs in RTL, you must write your insn using
an unspec_volatile.

Ian


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