-
Notifications
You must be signed in to change notification settings - Fork 12.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rework reserve assumes for Vec and String #119465
Conversation
r? @m-ou-se (rustbot has picked a reviewer for you, use r? to override) |
The optimization only works with the inlines and assumes in the top function (unless you |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
496e867
to
48a433c
Compare
This comment has been minimized.
This comment has been minimized.
48a433c
to
d46ba1d
Compare
This comment has been minimized.
This comment has been minimized.
d46ba1d
to
1dfff2e
Compare
Signed-off-by: Alex Saveau <saveau.alexandre@gmail.com>
Signed-off-by: Alex Saveau <saveau.alexandre@gmail.com>
Signed-off-by: Alex Saveau <saveau.alexandre@gmail.com>
This reverts commit 1dfff2e.
1dfff2e
to
a4b629e
Compare
☔ The latest upstream changes (presumably #119864) made this pull request unmergeable. Please resolve the merge conflicts. |
The functions are tiny though. Does |
Maybe this is actually an LLVM bug? I just tried putting |
ping from triage - can you post your status on this PR? This PR has not received an update in a few months. FYI: when a PR is ready for review, send a message containing Or if you're not going to continue, please close it. Thank you! |
Yeah, after all the fiddling I've done I think this is really just an LLVM bug, so I filed: #123944. |
Code:
Before:
After: