Skip to content

Commit 98f6f0f

Browse files
committed
Do not include peeks in uop pop effect
1 parent a87752c commit 98f6f0f

File tree

2 files changed

+58
-56
lines changed

2 files changed

+58
-56
lines changed

Include/internal/pycore_uop_metadata.h

Lines changed: 56 additions & 56 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Tools/cases_generator/uop_metadata_generator.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@ def generate_names_and_flags(analysis: Analysis, out: CWriter) -> None:
5151
if uop.is_viable() and uop.properties.tier != 1:
5252
stack = Stack()
5353
for var in reversed(uop.stack.inputs):
54+
if var.peek:
55+
break
5456
stack.pop(var)
5557
popped = (-stack.base_offset).to_c()
5658
out.emit(f"case {uop.name}:\n")

0 commit comments

Comments
 (0)