gh-128563: Move GO_TO_INSTRUCTION and PREDICT to cases generator (GH-129115)

This commit is contained in:
Ken Jin 2025-01-22 09:22:25 +08:00 committed by GitHub
parent 767cf70844
commit 86c1a60d5a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 47 additions and 59 deletions

View file

@ -158,7 +158,7 @@ def generate_tier1(
out.emit(f"next_instr += {inst.size};\n")
out.emit(f"INSTRUCTION_STATS({name});\n")
if inst.is_target:
out.emit(f"PREDICTED({name});\n")
out.emit(f"PREDICTED_{name}:;\n")
if needs_this:
out.emit(f"_Py_CODEUNIT* const this_instr = next_instr - {inst.size};\n")
out.emit(unused_guard)