Skip to content

Commit 244480a

Browse files
Clean up comment
1 parent 6480297 commit 244480a

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Tools/jit/_optimizers.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -252,10 +252,9 @@ def _preprocess(self, text: str) -> str:
252252
continue_symbol = rf"\b{re.escape(self.symbol_prefix)}_JIT_CONTINUE\b"
253253
continue_label = f"{self.label_prefix}_JIT_CONTINUE"
254254
text = re.sub(continue_symbol, continue_label, text)
255-
# Strip CFI directives. JIT stencils are compiled with
255+
# Strip CFI directives as JIT stencils are compiled with
256256
# -fno-asynchronous-unwind-tables and don't use DWARF CFI unwind
257-
# tables (.eh_frame).
258-
# The optimizer's dead code elimination can remove blocks containing
257+
# tables (.eh_frame). The optimizer can remove blocks containing
259258
# .cfi_endproc while keeping the corresponding .cfi_startproc,
260259
# producing unbalanced CFI frames that some assemblers reject:
261260
text = re.sub(r"^\s*\.cfi_\w+[^\n]*$", "", text, flags=re.MULTILINE)

0 commit comments

Comments
 (0)