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

Enable -Z asm-comments on nightly #402

Merged
merged 1 commit into from
Sep 15, 2018
Merged

Enable -Z asm-comments on nightly #402

merged 1 commit into from
Sep 15, 2018

Conversation

GabrielMajeri
Copy link
Contributor

This PR unconditionally enables assembly comments when the compiler supports them (nightly only, for now).

These comments can provide useful information, such as:

  • inform about register spills

  • specify the depth of a label in a loop

.LBB0_10: ; =>This Inner Loop Header: Depth=1
  • what happens to SIMD lanes in shuffles
pshufd  xmm1, xmm0, 78 ; xmm1 = xmm0[2,3,0,1]

Fixes #397.

@shepmaster shepmaster added the enhancement Something new the playground could do label Sep 15, 2018
@shepmaster
Copy link
Member

Wonderful, thank you! I'll merge when CI is green. Sorry for all the extra hoops you had to jump through. 🙇‍♀️

@shepmaster shepmaster merged commit 499812e into rust-lang:master Sep 15, 2018
@GabrielMajeri GabrielMajeri deleted the asm-comments branch September 16, 2018 03:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Something new the playground could do
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants