Skip to content

Don't require allocas for consuming simple enums#138582

Closed
scottmcm wants to merge 3 commits intorust-lang:mainfrom
scottmcm:option-ssa-2
Closed

Don't require allocas for consuming simple enums#138582
scottmcm wants to merge 3 commits intorust-lang:mainfrom
scottmcm:option-ssa-2

Conversation

@scottmcm
Copy link
Member

@scottmcm scottmcm commented Mar 16, 2025

View all comments

Well, 4 months later I'm finally back to this.

For example, if you pass an Option<u32> to a function, don't immediately write it to an alloca then read it again.

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

Labels

T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants