Skip to content

Commit 1d549af

Browse files
committed
Don't emit static assert to executor cases
1 parent e487908 commit 1d549af

3 files changed

Lines changed: 1 addition & 14 deletions

File tree

Python/executor_cases.c.h

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

Tools/cases_generator/generate_cases.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -637,6 +637,7 @@ def write_instr(self, instr: Instruction) -> None:
637637
with self.out.block(f"TARGET({name})"):
638638
if instr.predicted:
639639
self.out.emit(f"PREDICTED({name});")
640+
self.out.static_assert_family_size(instr.name, instr.family, instr.cache_offset)
640641
instr.write_case_body(self.out, tier=TIER_ONE)
641642
if not instr.always_exits:
642643
if instr.cache_offset:

Tools/cases_generator/instructions.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -144,11 +144,6 @@ def is_viable_uop(self) -> bool:
144144

145145
def write_case_body(self, out: Formatter, tier: Tiers) -> None:
146146
"""Write one instruction, sans prologue and epilogue."""
147-
148-
# Write a static assertion that a family's cache size is correct
149-
out.static_assert_family_size(self.name, self.family, self.cache_offset)
150-
151-
# Write input stack effect variable declarations and initializations
152147
stacking.write_single_instr(self, out, tier)
153148

154149
def write_body(

0 commit comments

Comments
 (0)