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: [SH] PR 53976 - Add RTL pass to eliminate clrt, sett insns


On Thu, 2013-11-21 at 12:22 +0100, Oleg Endo wrote:
> Sorry for the confusion.  Initially I had it inserted right before
> machine dependent reorg, at which point I was getting nullptr from
> BLOCK_FOR_INSN all over the place.  So not using it was the fix.
> However, only after I've noticed that SH's machine dependent reorg
> leaves the basic block structure in a 'broken' state (PR 59189) and thus
> I moved the pass before sched2.
> I'll try using BLOCK_FOR_INSN again.

... which won't work, since it sometimes also adds "unknown" ccreg_value
entries where insn is NULL_RTX, but bb is valid.  I'd like to keep it
that way.  It will be useful when moving sett / clrt insns around
between basic blocks.  I'll fix the confusing comment.

Cheers,
Oleg


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