Skip to content

Commit da314f7

Browse files
authored
A few more cases_generator cleanups (#112220)
1 parent cb5048e commit da314f7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Tools/cases_generator/flags.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ def variable_used_unspecialized(node: parsing.Node, name: str) -> bool:
175175
tokens: list[lx.Token] = []
176176
skipping = False
177177
for i, token in enumerate(node.tokens):
178-
if token.kind == "MACRO":
178+
if token.kind == "CMACRO":
179179
text = "".join(token.text.split())
180180
# TODO: Handle nested #if
181181
if text == "#if":

Tools/cases_generator/generate_cases.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -658,7 +658,7 @@ def write_macro_expansions(
658658
if not part.instr.is_viable_uop() and "replaced" not in part.instr.annotations:
659659
# This note just reminds us about macros that cannot
660660
# be expanded to Tier 2 uops. It is not an error.
661-
# It is sometimes emitted for macros that have a
661+
# Suppress it using 'replaced op(...)' for macros having
662662
# manual translation in translate_bytecode_to_trace()
663663
# in Python/optimizer.c.
664664
if len(parts) > 1 or part.instr.name != name:

0 commit comments

Comments
 (0)