public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* Puzzle about CFG on rtl during delay slot schedule
@ 2010-04-02  9:29 Amker.Cheng
  2010-04-02  9:43 ` Steven Bosscher
  0 siblings, 1 reply; 7+ messages in thread
From: Amker.Cheng @ 2010-04-02  9:29 UTC (permalink / raw)
  To: gcc

Hi :
   I'm wondering whether cfg is maintained properly during delay slot
scheduling,
Because when compiling libgcc/_divsc3.o, rtl dump in
libgcc2.c.198r.mach has following lines:

no bb for insn with uid = 293.
deleting insn with uid = 690.
deleting insn with uid = 904.
......

(note 298 905 303 [bb 25] NOTE_INSN_BASIC_BLOCK)

(note 303 298 304 [bb 26] NOTE_INSN_BASIC_BLOCK)
-------------------------------------cut here

after that pass, bb 25 still has il.rtl->head_ == insn_uid_690, which
has already deleted.
Seems the bb's head_/tail_ are not handled properly.

I traced cc1 and found it deleted insn_690 by function remove_insn,
It seems that the end the function takes BB_HEAD/BB_END into
consider, But the BLOCK_FOR_INSN(insn_690) is null, which results in
the problem.

BTW, the version working on is gcc-4.4.1, mips target.
So, any tips? Thanks very much.

-- 
Best Regards.

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2010-04-04  6:49 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-04-02  9:29 Puzzle about CFG on rtl during delay slot schedule Amker.Cheng
2010-04-02  9:43 ` Steven Bosscher
     [not found]   ` <v2ue8b251c81004020340tf3fb7416s12756e0a7560c102@mail.gmail.com>
2010-04-02 10:41     ` Fwd: " Amker.Cheng
2010-04-02 11:26       ` Steven Bosscher
2010-04-02 14:26         ` Jeff Law
2010-04-02 14:41           ` Steven Bosscher
2010-04-04  6:49             ` Amker.Cheng

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).