Skip to content

PoC: remove unsafe from generated calls to intrinsics#236

Draft
Shnatsel wants to merge 1 commit into
linebender:mainfrom
Shnatsel:safety-in-kernels
Draft

PoC: remove unsafe from generated calls to intrinsics#236
Shnatsel wants to merge 1 commit into
linebender:mainfrom
Shnatsel:safety-in-kernels

Conversation

@Shnatsel
Copy link
Copy Markdown
Contributor

Uses the kernel! macro added in #214 to eliminate most of the unsafe in calls to intrinsics.

This is a proof-of-concept to evaluate the impact on performance, compile time, etc. It is not intended to be merged as-is.

@Shnatsel
Copy link
Copy Markdown
Contributor Author

The initial assembly comparison on the fearless_simd_test binary is promising.

The default multi-CGU build is too noisy to evaluate on size, but -C codegen-units=1 there is very little change: the binary is only 16 bytes larger, the total number of call instructions is identical before and after.

Both default and -C codegen-units=1 builds do not contain any kernel symbols.

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