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

[update_mir_test_checks] Precommit test for multiple defs of vreg #66482

Merged
merged 1 commit into from
Sep 15, 2023
Merged

[update_mir_test_checks] Precommit test for multiple defs of vreg #66482

merged 1 commit into from
Sep 15, 2023

Conversation

jayfoad
Copy link
Contributor

@jayfoad jayfoad commented Sep 15, 2023

XFAIL it until it is fixed by an upcoming commit.

## virtual register (after coming out of SSA form).

# RUN: cp -f %S/Inputs/multiple-defs.mir %t.mir && %update_mir_test_checks %t.mir
# RUN: FileCheck %t.mir < %t.mir
Copy link
Contributor

Choose a reason for hiding this comment

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

We normally check the expected generated check lines using diff instead.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah, I know that's normal, but I'm not sure why it's better. In this case I wanted to demonstrate that the generated checks are broken.

Of course I can do it the "expected" way instead if that's what the reviewers really want.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done. I've added the "expected" output, but also run FileCheck to prove that the expected output really works.

XFAIL it until it is fixed by an upcoming commit.
@jayfoad jayfoad merged commit e4eb204 into llvm:main Sep 15, 2023
1 of 2 checks passed
@jayfoad jayfoad deleted the multiple-defs-1 branch September 15, 2023 12:09
ZijunZhaoCCK pushed a commit to ZijunZhaoCCK/llvm-project that referenced this pull request Sep 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants