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: Copying SI regs as HI subregs


D. Towner writes:

 > Is it more efficient to use RTL to generate the two subreg moves
 > explicitly?  Does this present opportunities for optimisation if gcc knows
 > that two such instructions are used, rather than a single atomic movsi
 > instruction? How can I go about actually generating the RTL if this is the
 > case?

At the moment you are probably better off by not exposing this too
early.  You should use a splitter pattern predicated on
reload_completed.  However, you will miss some low level insn
combination opportunities which hopefully the proposed RTL lowering
scheme should avoid.

Michael.





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