[Webkit-unassigned] [Bug 145204] New: Node::origin.forExit should only be set for those nodes that are allowed to exit

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue May 19 22:49:04 PDT 2015


https://bugs.webkit.org/show_bug.cgi?id=145204

            Bug ID: 145204
           Summary: Node::origin.forExit should only be set for those
                    nodes that are allowed to exit
    Classification: Unclassified
           Product: WebKit
           Version: 528+ (Nightly build)
          Hardware: All
                OS: All
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: JavaScriptCore
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: fpizlo at apple.com

We often have sequences of operations like this:

a: GetStuff(...)
b: Check(Thing:@a)
c: Call(@a, ...)
d: MovHint(@c, loc42)

Notice that GetStuff, Check, and Call can all exit. But after Call, you can't exit anymore. In particular, MovHint cannot exit.

But, the fact that MovHint cannot exit is not communicated in the IR.  We should change that: a Node's forExit origin is set only when that node can exit.

This means that we can for example immediately see that we cannot hoist an exiting node just above the MovHint. But, we would also see that we could hoist an exiting node above the Call, or above @a or @b.

This would harden the IR for fancier CFG transformations, and make it easier to split blocks and insert control flow.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20150520/62c27837/attachment-0001.html>


More information about the webkit-unassigned mailing list