Skip to content

[move-function] Add tests for debug info for owned arguments. #42053

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

Merged

Conversation

gottesmm
Copy link
Contributor

The first commit fixes a small issue where I was inserted a debug_info inst before a reinit instead of after. The main commit is the 2nd one.


[move-function] Add tests for debug info for owned arguments.

Some notes:

  1. I only updated the dwarf dump checks for the cases where the test case I was
    adding already had checks. The rest I am going to add the dwarf checks all at
    once in a subsequent commit.

  2. In the dwarf checks that I wrote, there are a few issues that show up due to
    some LLVM fixes that I need to finish upstreaming. Once I upstream them, I will
    be able to enable the specific patterns I have disabled. This ensures I atleast
    will be able to tell if I am changing the current codegen.

  3. This is dependent on the previous commit since one of the test cases hit the
    bug fixed by the first commit in the PR.

… /after/ the reinit.

Otherwise, the memory lifetime verifier complains we are using the value while
it is not initialized.

I actually did this correctly in the single block impl. Just a small thinko.
Some notes:

1. I only updated the dwarf dump checks for the cases where the test case I was
   adding already had checks. The rest I am going to add the dwarf checks all at
   once in a subsequent commit.

2. In the dwarf checks that I wrote, there are a few issues that show up due to
   some LLVM fixes that I need to finish upstreaming. Once I upstream them, I will
   be able to enable the specific patterns I have disabled. This ensures I atleast
   will be able to tell if I am changing the current codegen.

3. This is dependent on the previous commit since one of the test cases hit the
   bug fixed by the previous commit.
@gottesmm
Copy link
Contributor Author

@swift-ci test

@gottesmm gottesmm merged commit 5f99c31 into swiftlang:main Mar 28, 2022
@gottesmm gottesmm deleted the addr-move-function-fix-and-more-tests branch March 28, 2022 17:33
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.

1 participant