Skip to content

llvm: more tentatives at optimal field addition with pure LLVM IR#457

Draft
mratsim wants to merge 1 commit into
masterfrom
llvm-field-add-experiment
Draft

llvm: more tentatives at optimal field addition with pure LLVM IR#457
mratsim wants to merge 1 commit into
masterfrom
llvm-field-add-experiment

Conversation

@mratsim
Copy link
Copy Markdown
Owner

@mratsim mratsim commented Aug 14, 2024

This PR has changes behind the code generator from #456 that triggered issues:

for Bigints of size 254/255 the LLVM IR has better worst case codegen than builtin llvm.usub.with.overflow (1~2 extra instructions instead of 33% extra instructions #357 (comment)) but for size 256 it degrades to 66% extra instructions.

@mratsim mratsim changed the title llvm: more tentative at optimal field addition with pure LLVM IR llvm: more tentatives at optimal field addition with pure LLVM IR Aug 14, 2024
@mratsim mratsim force-pushed the master branch 3 times, most recently from 19c8109 to df51778 Compare April 29, 2026 13:06
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