WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
216110
Finish comment describing the various *Stack SSA nodes in DFG
https://bugs.webkit.org/show_bug.cgi?id=216110
Summary
Finish comment describing the various *Stack SSA nodes in DFG
Keith Miller
Reported
2020-09-02 17:33:26 PDT
Finish comment describing the various *Stack SSA nodes in DFG
Attachments
Patch
(1.61 KB, patch)
2020-09-02 17:35 PDT
,
Keith Miller
no flags
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Keith Miller
Comment 1
2020-09-02 17:35:29 PDT
Created
attachment 407839
[details]
Patch
EWS
Comment 2
2020-09-03 10:39:12 PDT
Committed
r266532
: <
https://trac.webkit.org/changeset/266532
> All reviewed patches have been landed. Closing bug and clearing flags on
attachment 407839
[details]
.
Radar WebKit Bug Importer
Comment 3
2020-09-03 10:40:18 PDT
<
rdar://problem/68288007
>
Saam Barati
Comment 4
2020-09-03 12:29:36 PDT
Comment on
attachment 407839
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=407839&action=review
> Source/JavaScriptCore/dfg/DFGNodeType.h:79 > + /* exits are rare this is preferable to representing availability directly in SSA. */\
why? Storing to the stack isn't free. If something is in a register, you don't also want to throw it onto the stack just for OSRs sake.
Keith Miller
Comment 5
2020-09-03 12:35:27 PDT
Comment on
attachment 407839
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=407839&action=review
>> Source/JavaScriptCore/dfg/DFGNodeType.h:79 >> + /* exits are rare this is preferable to representing availability directly in SSA. */\ > > why? Storing to the stack isn't free. If something is in a register, you don't also want to throw it onto the stack just for OSRs sake.
I don't think that's what this comment says but maybe it could be more explicit.
Saam Barati
Comment 6
2020-09-03 13:49:57 PDT
(In reply to Keith Miller from
comment #5
)
> Comment on
attachment 407839
[details]
> Patch > > View in context: >
https://bugs.webkit.org/attachment.cgi?id=407839&action=review
> > >> Source/JavaScriptCore/dfg/DFGNodeType.h:79 > >> + /* exits are rare this is preferable to representing availability directly in SSA. */\ > > > > why? Storing to the stack isn't free. If something is in a register, you don't also want to throw it onto the stack just for OSRs sake. > > I don't think that's what this comment says but maybe it could be more > explicit.
"this is preferable to representing availability directly in SSA" is not right.
Saam Barati
Comment 7
2020-09-03 13:50:25 PDT
(In reply to Saam Barati from
comment #6
)
> (In reply to Keith Miller from
comment #5
) > > Comment on
attachment 407839
[details]
> > Patch > > > > View in context: > >
https://bugs.webkit.org/attachment.cgi?id=407839&action=review
> > > > >> Source/JavaScriptCore/dfg/DFGNodeType.h:79 > > >> + /* exits are rare this is preferable to representing availability directly in SSA. */\ > > > > > > why? Storing to the stack isn't free. If something is in a register, you don't also want to throw it onto the stack just for OSRs sake. > > > > I don't think that's what this comment says but maybe it could be more > > explicit. > > "this is preferable to representing availability directly in SSA" is not > right.
Maybe you mean if both things were already the case? Like we happened to have a spill for another reason?
Keith Miller
Comment 8
2020-09-03 14:44:16 PDT
Comment on
attachment 407839
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=407839&action=review
>>>>> Source/JavaScriptCore/dfg/DFGNodeType.h:79 >>>>> + /* exits are rare this is preferable to representing availability directly in SSA. */\ >>>> >>>> why? Storing to the stack isn't free. If something is in a register, you don't also want to throw it onto the stack just for OSRs sake. >>> >>> I don't think that's what this comment says but maybe it could be more explicit. >> >> "this is preferable to representing availability directly in SSA" is not right. > > Maybe you mean if both things were already the case? Like we happened to have a spill for another reason?
Correct, I'm saying that the PutStacks are used to represent shadow data flow. We don't necessarily want B3 spend time register allocating that data if we could get it from the stack. That comment wasn't trying to say it's preferable to PutStack every OSR exit value.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug