Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
[PATCH]Dominance Frontiers
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  10 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Curtis Rawls  
View profile  
 More options Jul 28 2005, 12:53 pm
Newsgroups: perl.perl6.internals
From: cgra...@gmail.com (Curtis Rawls)
Date: Thu, 28 Jul 2005 10:53:07 -0600
Local: Thurs, Jul 28 2005 12:53 pm
Subject: Re: [perl #36597] [PATCH]Dominance Frontiers
Can someone apply this?  I have another patch ready that depends on this one.
Thanks!
-Curtis

On 7/19/05, via RT Curtis Rawls <parrotbug-follo...@parrotcode.org> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Will Coleda  
View profile  
 More options Jul 28 2005, 1:55 pm
Newsgroups: perl.perl6.internals
From: w...@coleda.com (Will Coleda)
Date: Thu, 28 Jul 2005 13:55:12 -0400
Local: Thurs, Jul 28 2005 1:55 pm
Subject: Re: [perl #36597] [PATCH]Dominance Frontiers
FYI, on OS X 10.4.2, I get:

Failed Test           Stat Wstat Total Fail  Failed  List of Failed
------------------------------------------------------------------------
-------
t/p6rules/backtrack.t    1   256    15    1   6.67%  2
t/pmc/eval.t             3   768    14    3  21.43%  12-14
t/pmc/perlstring.t       1   256    68    1   1.47%  61
t/pmc/string.t           1   256    35    1   2.86%  28

I have some slight differences from svn-latest which of course  
"shouldn't affect these tests". =-)

On Jul 19, 2005, at 10:39 PM, Curtis Rawls (via RT) wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Will Coleda  
View profile  
 More options Jul 28 2005, 3:12 pm
Newsgroups: perl.perl6.internals
From: w...@coleda.com (Will Coleda)
Date: Thu, 28 Jul 2005 15:12:58 -0400
Local: Thurs, Jul 28 2005 3:12 pm
Subject: Re: [perl #36597] [PATCH]Dominance Frontiers
The eval tests are failing with a pristine checkout so we can ignore  
those. Applying your patch to a pristine build yields only the  
backtrack.t failure: #2 eats 100% of the CPU until I kill it: it  
doesn't behave that way in svn-head.

Looks like PerlString and String were red herrings. Should track down  
why p6rules is misbehaving with your patch, though.

Regards.

On Jul 28, 2005, at 1:55 PM, Will Coleda wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Andy Dougherty  
View profile  
 More options Jul 28 2005, 3:39 pm
Newsgroups: perl.perl6.internals
From: dough...@lafayette.edu (Andy Dougherty)
Date: Thu, 28 Jul 2005 15:39:33 -0400 (EDT)
Local: Thurs, Jul 28 2005 3:39 pm
Subject: Re: [perl #36597] [PATCH]Dominance Frontiers

On Thu, 28 Jul 2005, Will Coleda wrote:
> Applying your patch to a pristine build yields only the backtrack.t failure:
> #2 eats 100% of the CPU until I kill it: it doesn't behave that way in
> svn-head.

I can confirm the backtrack #2 failure under SPARC/Solaris.  I can't say
what other tests may have changed; the script I had running the comparison
got stuck at backtrack.t and never finished.

--
    Andy Dougherty              dough...@lafayette.edu


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Curtis Rawls  
View profile  
 More options Jul 29 2005, 2:28 am
Newsgroups: perl.perl6.internals
From: cgra...@gmail.com (Curtis Rawls)
Date: Fri, 29 Jul 2005 00:28:42 -0600
Local: Fri, Jul 29 2005 2:28 am
Subject: Re: [perl #36597] [PATCH]Dominance Frontiers
Thanks for pointing this out.  I tracked the bug down, and it looks
like the dominator algorithm does not handle unreachable blocks
correctly, and the dominance frontier algorithm suffers for it.  Why
the unreachable blocks are generated in the first place might be an
interesting question for someone working on PGE.

I'll work on the dominator bug before applying the DF patch.
-Curtis

On 7/28/05, Will Coleda <w...@coleda.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Patrick R. Michaud  
View profile  
 More options Jul 28 2005, 10:10 pm
Newsgroups: perl.perl6.internals
From: pmich...@pobox.com (Patrick R. Michaud)
Date: Thu, 28 Jul 2005 21:10:32 -0500
Local: Thurs, Jul 28 2005 10:10 pm
Subject: Re: [perl #36597] [PATCH]Dominance Frontiers

On Thu, Jul 28, 2005 at 03:39:33PM -0400, Andy Dougherty wrote:
> On Thu, 28 Jul 2005, Will Coleda wrote:

> > Applying your patch to a pristine build yields only the backtrack.t failure:
> > #2 eats 100% of the CPU until I kill it: it doesn't behave that way in
> > svn-head.

> I can confirm the backtrack #2 failure under SPARC/Solaris.  I can't say
> what other tests may have changed; the script I had running the comparison
> got stuck at backtrack.t and never finished.

Just to add to the picture -- I also tried applying df.patch to a fresh
checkout of parrot/trunk (r8727), and also observed the same problem
of getting stuck on test #2 in t/p6rules/backtrack.t .  (FWIW, I'm running
Fedora Core 4.)

Some additional investigation reveals that with df.patch applied it's
the PIR compiler that is getting stuck.  I'm able to reproduce this
with the code below, which doesn't do anything useful other than
demonstrate that the compiler gets stuck when one tries to compile:

    $ cat x4.pir
    .sub foo
        print "started\n"
        bsr R1
        goto end
      R1:
        goto R2
        if $I0 goto R2
        bsr R2
      R2:
        ret
      end:
    .end

    $ parrot -t -v -o x4.pbc x4.pir
    debug = 0x0
    Reading x4.pir
    using optimization '0' (0)
    Starting parse...

at which point the process is stuck until interrupted somehow.  

The problem seems to be with the exact goto/if/bsr sequence given in R1 --
remove any of them or reorder them and the code successfully compiles.

I completely grant that the specific sequence of statements that
trigger this problem is bizarre -- it only occurred in PGE because
of a missing optimization in PGE's code generator.  The cut operator
(for backtracking control) generated a "goto R2" statement to
handle the cut, but then also generated the code that would've
performed the backtracking had the cut not been present.  Note that
having the extra code after the goto doesn't change the syntactic
or semantic correctness at all -- it just causes the compiler to choke
somehow (when df.patch is applied).

I'll definitely fix PGE to not generate the unnecessary code
following the "goto", but it seems to me that the compiler should
not hang on something like this in any case.

I'll be very happy to add the above PIR segment to the imcc test
suite if someone can tell me which imcc/t/*/*.t file it should go in.
Then I'll fix PGE to not generate the code it should not have
been generating in the first place.  :-)

Hope this helps!

Pm


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Leopold Toetsch  
View profile  
 More options Jul 29 2005, 6:54 am
Newsgroups: perl.perl6.internals
From: l...@toetsch.at (Leopold Toetsch)
Date: Fri, 29 Jul 2005 12:54:50 +0200
Local: Fri, Jul 29 2005 6:54 am
Subject: Re: [perl #36597] [PATCH]Dominance Frontiers

Patrick R. Michaud wrote:

> ...  I'm able to reproduce this
> with the code below

Good catch.

> I'll be very happy to add the above PIR segment to the imcc test
> suite if someone can tell me which imcc/t/*/*.t file it should go in.

Probably time to start a new subdir:

imcc/t/cfg/df.t

or some such.

> Pm

leo

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Discussion subject changed to "more svn ci privs (was: [perl #36597] [PATCH]Dominance Frontiers)" by Curtis Rawls
Curtis Rawls  
View profile  
(1 user)  More options Aug 9 2005, 2:54 pm
Newsgroups: perl.perl6.internals
From: cgra...@gmail.com (Curtis Rawls)
Date: Tue, 9 Aug 2005 14:54:42 -0400
Local: Tues, Aug 9 2005 2:54 pm
Subject: Re: more svn ci privs (was: [perl #36597] [PATCH]Dominance Frontiers)
Can you check on the status of my commit access?  I tried committing
today, and got this error:

$ svn commit --file ../logmsg
<snip>
Authentication realm: <https://svn.perl.org:443> perl.org
Username: cgrawls
Password for 'cgrawls':
svn: Commit failed (details follow):
svn: MKACTIVITY of
/parrot/!svn/act/d66942a2-ebfd-0310-9e04-e131c6e806bb: authorization
failed (https://svn.perl.org)

Thanks,
-Curtis

On 7/29/05, Leopold Toetsch via RT <parrotbug-follo...@parrotcode.org> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Discussion subject changed to "[PATCH]Dominance Frontiers" by Curtis Rawls
Curtis Rawls  
View profile  
 More options Aug 10 2005, 9:25 pm
Newsgroups: perl.perl6.internals
From: cgra...@gmail.com (Curtis Rawls)
Date: Wed, 10 Aug 2005 21:25:03 -0400
Local: Wed, Aug 10 2005 9:25 pm
Subject: Re: [perl #36597] [PATCH]Dominance Frontiers
I have attached a patch that fixes this problem.

Description:
-----
This patch adds a bb_remove_edge() function, and decouples unreachable blocks
from the CFG by removing their successor edges.
-----

I think this is the best way to handle unreachable blocks in the CFG,
other than removing them, which is an -O1 optimization.

I still don't have commit access, so someone else can apply it now, or
I will apply it once I do, if there are no complaints.
-Curtis

On 7/29/05, Curtis Rawls <cgra...@gmail.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Leopold Toetsch  
View profile  
 More options Aug 11 2005, 7:28 am
Newsgroups: perl.perl6.internals
From: l...@toetsch.at (Leopold Toetsch)
Date: Thu, 11 Aug 2005 13:28:45 +0200
Local: Thurs, Aug 11 2005 7:28 am
Subject: Re: [perl #36597] [PATCH]Dominance Frontiers

Curtis Rawls wrote:
>>This patch adds a bb_remove_edge() function, and decouples unreachable blocks
>>from the CFG by removing their successor edges.

Thanks, applied - r8913

leo


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google