Skip to content

Fix unnecessary parse and typecheck overhead when using IR conversion check#4521

Open
magancarz wants to merge 1 commit into
google:mainfrom
antmicro:ir-check-perf
Open

Fix unnecessary parse and typecheck overhead when using IR conversion check#4521
magancarz wants to merge 1 commit into
google:mainfrom
antmicro:ir-check-perf

Conversation

@magancarz

@magancarz magancarz commented Jul 7, 2026

Copy link
Copy Markdown
Contributor

This pull request fixes unnecessary overhead introduced by duplicate parsing and typechecking when IR conversion check is enabled. As tested with bazel run -c opt //xls/modules/zstd:zstd_dec_dslx_test and commented tests for simplicity of measuring IR conversion check overhead - on main branch it takes ~3.5 min to finish executing the target, while with this PR changes it finishes in ~38 seconds. Without IR conversion check, the execution time is ~27 seconds. As a result it narrows down IR conversion check overhead from ~3 min to ~11 seconds in the tested case.

@magancarz

Copy link
Copy Markdown
Contributor Author

@richmckeever I've answered your question about used compilation mode by updating the description with used command.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant