From: "Sanjiv Kumar Gupta, Noida" <sanjivg@noida.hcltech.com>
To: gcc@gcc.gnu.org
Subject: RE: infinite loop in find_rgns
Date: Wed, 02 Apr 2003 12:23:00 -0000 [thread overview]
Message-ID: <E04CF3F88ACBD5119EFE00508BBB212108742E21@exch-01.noida.hcltech.com> (raw)
>In my case , current_edge is 0 at start. This is running in
>infinite loop then.
I got the above problem while trying to enable the first
scheduling pass for SH4.
The problem is, find_rgns() doesn't work in case of CFG not
having a basic block whose index is 0. In case of SH4,
the CFG starts with BB1 instead of BB0 for find_rgns
(optimize_mode_switching converts the CFG in this way). So the
follwing assignment is probably not correct in this case.
Line 628 sched-rgn.c
...,current_edge = out_edges[0];
Since the array out_edges is xcalloced, it gives current_edge as
0 even if the BB0 is not present in the CFG. And since the current_edge
is 0 at start, it runs into infinite loop.
One solution to correct this is to check the value
of current_edge till you get a valid value (0 is an illegal
value I guess).
Looking for your suggestions while I am experimenting this.
--Sanjiv
next reply other threads:[~2003-04-02 9:32 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-04-02 12:23 Sanjiv Kumar Gupta, Noida [this message]
2003-04-02 20:14 ` Richard Henderson
-- strict thread matches above, loose matches on Subject: below --
2003-04-03 9:57 Sanjiv Kumar Gupta, Noida
2003-03-31 16:15 Sanjiv Kumar Gupta, Noida
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=E04CF3F88ACBD5119EFE00508BBB212108742E21@exch-01.noida.hcltech.com \
--to=sanjivg@noida.hcltech.com \
--cc=gcc@gcc.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).