-
-
Notifications
You must be signed in to change notification settings - Fork 34.5k
gh-145742: Pre-tag operands for _LOAD_CONST_INLINE_BORROW variants #148081
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from 15 commits
72d1748
7b24811
c59b71f
7dac2a6
76b642d
1a1b1a8
8b2fccd
c62e632
9f43a6b
7c82d98
1acee63
0fb391a
c3c6254
9f40ae4
6f234a4
c4c014f
5d53696
a6b2a1a
7c6f644
f4baafe
880d084
21b97aa
914c21a
d439aed
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| Optimize _LOAD_CONST_INLINE_BORROW by pre-tagging operands at trace | ||
| creation. Patch by Donghee Na. |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -6104,11 +6104,11 @@ dummy_func( | |
| } | ||
|
|
||
| tier2 pure op(_LOAD_CONST_INLINE_BORROW, (ptr/4 -- value)) { | ||
| value = PyStackRef_FromPyObjectBorrow(ptr); | ||
| value = PyStackRef_FromPreTagged(ptr); | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The problem is that we always cast |
||
| } | ||
|
|
||
| tier2 op(_SHUFFLE_3_LOAD_CONST_INLINE_BORROW, (ptr/4, callable, null, arg -- res, a, c)) { | ||
|
corona10 marked this conversation as resolved.
Outdated
|
||
| res = PyStackRef_FromPyObjectBorrow(ptr); | ||
| res = PyStackRef_FromPreTagged(ptr); | ||
| a = arg; | ||
| c = callable; | ||
| INPUTS_DEAD(); | ||
|
|
||
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Uh oh!
There was an error while loading. Please reload this page.