Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
548fb94
gh-116168: Remove extra _CHECK_STACK_SPACE uops
lazorchakp Mar 21, 2024
1a7cb94
Merge remote-tracking branch 'upstream/main' into gh-116168-remove-ex…
lazorchakp Mar 26, 2024
5eca7ca
Assorted cleanup and pipeline fix
lazorchakp Mar 26, 2024
76e540a
Merge remote-tracking branch 'upstream/main' into gh-116168-remove-ex…
lazorchakp Mar 26, 2024
1b1d8e1
Fix loss of data warning and revert changes to optimizer.c
lazorchakp Mar 26, 2024
781590d
Merge remote-tracking branch 'upstream/main' into gh-116168-remove-ex…
lazorchakp Mar 26, 2024
617e4f3
Move all _CHECK_STACK_SPACE consolidation to optimizer_analysis.c
lazorchakp Mar 28, 2024
49a1fa9
Merge remote-tracking branch 'upstream/main' into gh-116168-remove-ex…
lazorchakp Mar 28, 2024
95ef823
Use get_co in peephole_opt
lazorchakp Mar 28, 2024
defdc2b
clean up diff
lazorchakp Mar 28, 2024
df0d589
Update with PR feedback, still need to move logic to optimizer_byteco…
lazorchakp Mar 29, 2024
83c57a2
Merge remote-tracking branch 'upstream/main' into gh-116168-remove-ex…
lazorchakp Mar 29, 2024
3f7ba5b
Merge remote-tracking branch 'upstream/main' into gh-116168-remove-ex…
lazorchakp Mar 29, 2024
c12119f
Make combine_stack_space_checks as similar to peephole_opt as possible
lazorchakp Mar 30, 2024
f0b2133
Integrate combine_stack_space_checks with peephole_opt
lazorchakp Mar 30, 2024
486ece6
Address style nits
lazorchakp Apr 1, 2024
5b797e8
Merge remote-tracking branch 'upstream/main' into gh-116168-remove-ex…
lazorchakp Apr 1, 2024
64fac38
Undo accidental newline removal
lazorchakp Apr 2, 2024
77e94cb
Merge remote-tracking branch 'upstream/main' into gh-116168-remove-ex…
lazorchakp Apr 3, 2024
7b62c2b
Fix variables names in large-framesize test comment
lazorchakp Apr 3, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Merge remote-tracking branch 'upstream/main' into gh-116168-remove-ex…
…tra-_check_stack_space-ops
  • Loading branch information
lazorchakp committed Mar 26, 2024
commit 781590d05191eb2c338701d24ca97248c418479a
197 changes: 99 additions & 98 deletions Include/internal/pycore_uop_ids.h

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions Include/internal/pycore_uop_metadata.h

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Python/executor_cases.c.h

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 4 additions & 3 deletions Python/optimizer_analysis.c
Original file line number Diff line number Diff line change
Expand Up @@ -671,8 +671,8 @@ combine_stack_space_checks(
}
}
}
// must only return due to _EXIT_TRACE
assert(false);
Py_FatalError("No terminating instruction");
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Py_UNREACHABLE alone is enough usually.

Suggested change
Py_FatalError("No terminating instruction");

Py_UNREACHABLE();
}

// 0 - failure, no error raised, just fall back to Tier 1
Expand Down Expand Up @@ -704,8 +704,9 @@ _Py_uop_analyze_and_optimize(
return length;
}

remove_unneeded_uops(buffer, buffer_size);
combine_stack_space_checks(buffer, buffer_size);
length = remove_unneeded_uops(buffer, length);
assert(length > 0);

OPT_STAT_INC(optimizer_successes);
return length;
Expand Down
You are viewing a condensed version of this merge commit. You can view the full changes here.