Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit71dea74

Browse files
authored
gh-131798: Small improvements toremove_unneeded_uops (GH-134554)
Improve remove_unneeded_uops
1 parentb8f5526 commit71dea74

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

‎Python/optimizer_analysis.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -558,6 +558,7 @@ const uint16_t op_without_push[MAX_UOP_ID + 1] = {
558558
constboolop_skip[MAX_UOP_ID+1]= {
559559
[_NOP]= true,
560560
[_CHECK_VALIDITY]= true,
561+
[_CHECK_PERIODIC]= true,
561562
[_SET_IP]= true,
562563
};
563564

@@ -617,7 +618,7 @@ remove_unneeded_uops(_PyUOpInstruction *buffer, int buffer_size)
617618
while (op_skip[last->opcode]) {
618619
last--;
619620
}
620-
if (op_without_push[last->opcode]) {
621+
if (op_without_push[last->opcode]&&op_without_pop[opcode]) {
621622
last->opcode=op_without_push[last->opcode];
622623
opcode=buffer[pc].opcode=op_without_pop[opcode];
623624
if (op_without_pop[last->opcode]) {

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp