This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Patch to correct haifa-sched.c region scheduling
- To: Stan Cox <scox at cygnus dot com>
- Subject: Re: Patch to correct haifa-sched.c region scheduling
- From: Jeffrey A Law <law at cygnus dot com>
- Date: Tue, 04 Jan 2000 00:34:21 -0700
- cc: egcs-patches at egcs dot cygnus dot com
- Reply-To: law at cygnus dot com
In message <nrso0ebr9o.fsf@equinox.cygnus.com>you write:
> This fixes a couple of bugs in the haifa-sched.c new CFG support which
> accidently turned off most region scheduling. build_control_flow was
> erroneously flagging valid loops as unreachable which resulted in
> find_rgns never being called. Additionally find_rgns was setting
> degree (# predecessors) incorrectly. Tested on Sparc.
>
> Okay to commit?
>
> 2000-01-04 Stan Cox <scox@cygnus.com>
>
> * haifa-sched.c (build_control_flow): Change unreachable simple
> loop test to check if current block has only one predecessor.
> (find_rgns): Initialize degree. Use dest as degree index, not src.
This is fine. Please install it.
Thanks,
jeff