Skip to content

Add codegen test for array comparision opt #82459

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

Closed
wants to merge 2 commits into from

Conversation

tesuji
Copy link
Contributor

@tesuji tesuji commented Feb 24, 2021

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Feb 24, 2021
@rust-log-analyzer

This comment has been minimized.

@tesuji

This comment has been minimized.

@JohnCSimon JohnCSimon added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Mar 16, 2021
@Dylan-DPC-zz
Copy link

@jonas-schievink this is ready for review

@jonas-schievink
Copy link
Contributor

I don't really know how this works.

r? @nagisa

#![crate_type = "lib"]

// CHECK-LABEL: compare
// CHECK: movb $1, %al
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably should CHECK-NEXT here. There are a number of plausible ways to generate code for this that would result in these two instructions somewhere, but not necessarily in just these two instructions.

@nagisa nagisa added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Mar 25, 2021
@nagisa
Copy link
Member

nagisa commented Mar 25, 2021

This is r=me once the comment above is addressed.

@JohnCSimon
Copy link
Member

Ping from triage: @tesuji can you post your status on this MR and address nagisa's feedback? Thank you.

@camelid camelid added A-codegen Area: Code generation A-testsuite Area: The testsuite used to check the correctness of rustc labels Apr 30, 2021
@nagisa
Copy link
Member

nagisa commented May 9, 2021

Alas the issue seems to have resurfaced. I rebased the test case and it failed. Closing this to get it out of my queue.

@nagisa nagisa closed this May 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-codegen Area: Code generation A-testsuite Area: The testsuite used to check the correctness of rustc S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Missed optimization on array comparison
9 participants