Skip to content

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

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

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

Conversation

@mratsim
Copy link
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
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