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: subreg rtl documentation


On Tue, 2008-04-08 at 10:02 -0600, Jeff Law wrote:
> I don't think we do.  reload makes a pass over all the insns calling 
> cleanup_subreg_operands which ought to be zapping all the (subreg (mem)) 
> thingies and replacing (subreg (hardreg)) with  (hardreg')

But we also call cleanup_subreg_operands in final_scan_insn, right
before emitting assembly code, which implies that some subregs might be
slipping through.

If we wanted to know for sure, we could put an abort here.  Maybe pass
an extra operand to cleanup_subreg_operands, and if it does find a
subreg, abort, and then document or fix the circumstances.

Jim


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