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.
Add FileCheck annotations to mir-opt/copy-prop #135099
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
base: master
Are you sure you want to change the base?
Add FileCheck annotations to mir-opt/copy-prop #135099
Changes from all commits
1b5a744
e6dcb25
78a143f
ab21ba3
4057797
77d5711
f53476b
2d04a63
d0365d3
334d501
d3176d5
ef42830
4627ea1
381466c
1aeeebc
30a656a
0d6fa54
430d888
6eab7c7
7a64137
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm wondering if we don't need this function for CopyProp.
I guess this test file originally from dest-prop, and in dest-prop the self-assignment is eliminated. But in copy-prop, it is not eliminated.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Indeed. Do you mind fixing the comment and adding a
CHECK: [[x]] = copy [[x]];
?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is no self-copy instruction in the mir file, but it has
_2 = copy _1
and_0 = copy _1
(I already added).Do you mean that I should add
CHECK: _2 = copy [[x]];
?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I modified it in 7a64137. Please check if the change matches with your thought 🙏
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Currious why the change here? The CHECK statements look identical to those in
dead_stores_79191.rs
which makes the comment above outdated.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! Now I confirmed that mir files from those tests are identical.
They were introduced in #106908, but in the PR the
.f.CopyProp.after.mir
files already looked identical.Should we remove this test as duplicated test?