8000 Add an independent LLVM codegen optimization level by romart · Pull Request #5573 · google/xls · GitHub
[go: up one dir, main page]

Skip to content

Add an independent LLVM codegen optimization level - #5573

Open
romart wants to merge 1 commit into
google:mainfrom
romart:codegen_level_opt
Open

romart wants to merge 1 commit into
google:mainfrom
romart:codegen_level_opt

Conversation

@romart
@romart romart commented Nov 30, 2026
Copy link
Copy Markdown
Contributor

Add a machine code optimization setting to the JIT and AOT APIs and expose it as --llvm_codegen_opt_level in eval_proc_main. Default to LLVM's backend level 2.

At LLVM IR O1, lowering the backend level from 2 to 0 cut median block JIT compile time for a local block JIT benchmark from 2.15 s to 1.56 s (27%). Execution rose from 21.8 to 40.8 ms per 10,000 calls.

Add a machine code optimization setting to the JIT and AOT APIs and
expose it as --llvm_codegen_opt_level in eval_proc_main. Default to
LLVM's backend level 2.

At LLVM IR O1, lowering the backend level from 2 to 0 cut median
block JIT compile time for a local block JIT benchmark from 2.15 s to
1.56 s (27%). Execution rose from 21.8 to 40.8 ms per 10,000 calls.

This branch has not been deployed

No deployments
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

0