public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* Question of the suitable time to call `free_bb_for_insn()'
@ 2005-08-14  1:16 Ling-hua Tseng
  2005-08-14 15:54 ` Ling-hua Tseng
  2005-08-16 20:25 ` Richard Henderson
  0 siblings, 2 replies; 3+ messages in thread
From: Ling-hua Tseng @ 2005-08-14  1:16 UTC (permalink / raw)
  To: gcc

I'm porting the GCC 4.0.2 (2005-08-11 snapshot) to a new VLIW architecture.

I figured out the `free_bb_for_insn()' is called before the reorg pass,
and I would like to use the CFG in the reorg pass for a reason.

The reason is:
    I would like to change flag_schedule_insns_after_reload to 0 by the macro OVERRIDE_OPTIONS if it was set,
    and then I would like to call the sched2 pass in some location of the hook TARGET_MACHINE_DEPENDENT_REORG.
    Perhaps I will manually do some instruction scheduling in the reorg pass in the future.

So I have two questions:
    1. Is it safe to move the line `free_bb_for_insn ();' to the next line of `rest_of_handle_machine_reorg ();' ?
    2. If it is safe, would the GCC team like to move it to there for allowing other ones can use CFG info
        in the reorg pass?

By the way, I noticed that the ia64 port did something which is similar to mine.
But it do some effort for recoding something before the reorg pass.
Moreover, it's forced to call the `schedule_ebbs()' however(I'd like to call `schedule_insns()').

Thanks a lot.

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

end of thread, other threads:[~2005-08-16 20:25 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-08-14  1:16 Question of the suitable time to call `free_bb_for_insn()' Ling-hua Tseng
2005-08-14 15:54 ` Ling-hua Tseng
2005-08-16 20:25 ` Richard Henderson

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).