Skip to content
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

trans move_val_init expression directly into the destination address. #25959

Merged
merged 2 commits into from
Jun 4, 2015

Conversation

pnkfelix
Copy link
Member

@pnkfelix pnkfelix commented Jun 2, 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

@rust-highfive
Copy link
Collaborator

r? @brson

(rust_highfive has picked a reviewer for you, use r? to override)

@pnkfelix
Copy link
Member Author

pnkfelix commented Jun 2, 2015

r? @nikomatsakis

@rust-highfive rust-highfive assigned nikomatsakis and unassigned brson Jun 2, 2015
@nikomatsakis
Copy link
Contributor

@bors r+

@bors
Copy link
Contributor

bors commented Jun 2, 2015

📌 Commit 0b74800 has been approved by nikomatsakis

@alexcrichton alexcrichton added the T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. label Jun 2, 2015
@bors
Copy link
Contributor

bors commented Jun 3, 2015

⌛ Testing commit 0b74800 with merge fe19406...

@bors
Copy link
Contributor

bors commented Jun 3, 2015

💔 Test failed - auto-mac-64-nopt-t

@alexcrichton
Copy link
Member

@bors: retry

On Wed, Jun 3, 2015 at 7:40 AM, bors [email protected] wrote:

[image: 💔] Test failed - auto-mac-64-nopt-t
http://buildbot.rust-lang.org/builders/auto-mac-64-nopt-t/builds/5223


Reply to this email directly or view it on GitHub
#25959 (comment).

@bors
Copy link
Contributor

bors commented Jun 3, 2015

⌛ Testing commit 0b74800 with merge fe107b3...

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
@bors bors merged commit 0b74800 into rust-lang:master Jun 4, 2015
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.

6 participants