trans move_val_init expression directly into the destination address.#25959
Merged
bors merged 2 commits intorust-lang:masterfrom Jun 4, 2015
Merged
trans move_val_init expression directly into the destination address.#25959bors merged 2 commits intorust-lang:masterfrom
bors merged 2 commits intorust-lang:masterfrom
Conversation
…on address. remove dead code further down for intrinsic.
Contributor
|
r? @brson (rust_highfive has picked a reviewer for you, use r? to override) |
Contributor
Author
Contributor
|
@bors r+ |
Collaborator
|
📌 Commit 0b74800 has been approved by |
Collaborator
|
⌛ Testing commit 0b74800 with merge fe19406... |
Collaborator
|
💔 Test failed - auto-mac-64-nopt-t |
Member
|
@bors: retry On Wed, Jun 3, 2015 at 7:40 AM, bors notifications@github.com wrote:
|
Collaborator
bors
added a commit
that referenced
this pull request
Jun 3, 2015
Hack the move_val_init intrinsic to trans directly into the destination address. This is to remove an intermediate (and unnecessary) alloca on the stack that one otherwise suffers when using this intrinsic. This is part of the `box` protocol work; in particular, this is meant to address the `ptr::write` codegen issues alluded to at this comment: #22086 (comment) cc #22181
Collaborator
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Hack the move_val_init intrinsic to trans directly into the destination address.
This is to remove an intermediate (and unnecessary) alloca on the stack that one otherwise suffers when using this intrinsic.
This is part of the
boxprotocol work; in particular, this is meant to address theptr::writecodegen issues alluded to at this comment:#22086 (comment)
cc #22181