* Scheduler cleanups, 4/N
@ 2011-03-24 13:16 Bernd Schmidt
2011-03-25 18:35 ` Jeff Law
0 siblings, 1 reply; 2+ messages in thread
From: Bernd Schmidt @ 2011-03-24 13:16 UTC (permalink / raw)
To: GCC Patches
[-- Attachment #1: Type: text/plain, Size: 303 bytes --]
We have a mechanism to prevent the scheduler from touching certain
blocks; this is used by modulo scheduling. sched-ebb does not honor this
flag currently; this patch fixes it. Bootstrapped and tested on
i686-linux (pointlessly... but it's also used in our local tree for a
new target, TI C6X).
Bernd
[-- Attachment #2: bbdissched.diff --]
[-- Type: text/plain, Size: 578 bytes --]
* sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE_FLAG.
Index: gcc/sched-ebb.c
===================================================================
--- gcc/sched-ebb.c.orig
+++ gcc/sched-ebb.c
@@ -585,6 +585,9 @@ schedule_ebbs (void)
{
rtx head = BB_HEAD (bb);
+ if (bb->flags & BB_DISABLE_SCHEDULE)
+ continue;
+
for (;;)
{
edge e;
@@ -597,6 +600,8 @@ schedule_ebbs (void)
break;
if (e->probability <= probability_cutoff)
break;
+ if (e->dest->flags & BB_DISABLE_SCHEDULE)
+ break;
bb = bb->next_bb;
}
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Scheduler cleanups, 4/N
2011-03-24 13:16 Scheduler cleanups, 4/N Bernd Schmidt
@ 2011-03-25 18:35 ` Jeff Law
0 siblings, 0 replies; 2+ messages in thread
From: Jeff Law @ 2011-03-25 18:35 UTC (permalink / raw)
To: Bernd Schmidt; +Cc: GCC Patches
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 03/24/11 07:14, Bernd Schmidt wrote:
> We have a mechanism to prevent the scheduler from touching certain
> blocks; this is used by modulo scheduling. sched-ebb does not honor this
> flag currently; this patch fixes it. Bootstrapped and tested on
> i686-linux (pointlessly... but it's also used in our local tree for a
> new target, TI C6X).
OK.
Jeff
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/
iQEcBAEBAgAGBQJNjN+NAAoJEBRtltQi2kC7msMIAIARUmWJGlRbdnhTVtHw9svk
mNVQw5Se1BCzjDjERcuH8nZ2J0RcejNQWSCfYOBjGW3u5bzqYNPsjFkMj4TXCH3N
az7EAlj6uw6IcqnOL2HsoH89zMDNp5bUanKmlUDznTyaDAutYL+LAp3if5EbBFn8
C6LQHJDlnmYYmZohW3aYyJ+mGKhA3gODFJsWt7uWKuPEjedHY8Jztuc72gSavHo2
qxPze59QyHkC9VaTPdt7wYgsA2UtNmbNIfZIVluutXBKQGXC5xEHszbS16OvcK/v
RS9dQVpNZlfQVz+V6iLywET0/OM9leOHQRTAGwx4g9ffLuBOiAXrjW2Dbj6gclg=
=NmoH
-----END PGP SIGNATURE-----
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-03-25 18:31 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-03-24 13:16 Scheduler cleanups, 4/N Bernd Schmidt
2011-03-25 18:35 ` Jeff Law
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).