-
-
Notifications
You must be signed in to change notification settings - Fork 32.1k
GH-116596: Better determination of escaping uops. #116597
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
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.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -430,15 +430,15 @@ remove_unneeded_uops(_PyUOpInstruction *buffer, int buffer_size) | |
int opcode = buffer[pc].opcode; | ||
switch (opcode) { | ||
case _SET_IP: | ||
buffer[pc].opcode = NOP; | ||
buffer[pc].opcode = _NOP; | ||
last_set_ip = pc; | ||
break; | ||
case _CHECK_VALIDITY: | ||
if (may_have_escaped) { | ||
may_have_escaped = false; | ||
} | ||
else { | ||
buffer[pc].opcode = NOP; | ||
buffer[pc].opcode = _NOP; | ||
} | ||
break; | ||
case _CHECK_VALIDITY_AND_SET_IP: | ||
|
@@ -447,7 +447,7 @@ remove_unneeded_uops(_PyUOpInstruction *buffer, int buffer_size) | |
buffer[pc].opcode = _CHECK_VALIDITY; | ||
} | ||
else { | ||
buffer[pc].opcode = NOP; | ||
buffer[pc].opcode = _NOP; | ||
} | ||
last_set_ip = pc; | ||
break; | ||
|
@@ -463,7 +463,7 @@ remove_unneeded_uops(_PyUOpInstruction *buffer, int buffer_size) | |
last->opcode == _COPY | ||
) { | ||
last->opcode = _NOP; | ||
buffer[pc].opcode = NOP; | ||
buffer[pc].opcode = _NOP; | ||
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. 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. In Tier 1 it's NOP. In Tier 2 it's 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. Thanks for the clarification! |
||
} | ||
if (last->opcode == _REPLACE_WITH_TRUE) { | ||
last->opcode = _NOP; | ||
|
Uh oh!
There was an error while loading. Please reload this page.