Skip to content

[DebugInfo] Re-enable x86 async tests #69851

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

felipepiovezan
Copy link
Contributor

With swiftlang/llvm-project#7787 merged, we can now finally renable these tests, as the x86 swift async handling should be properly preserved by the x86 instruction selector.

These tests contained some incorrect checks from a time where it was expecting an entry value even in the entry funclet of coroutines. For example, it had this:

CHECK-NEXT: [[ASYNC_REG:DW_OP_.*], DW_OP_plus_uconst 0x10, DW_OP_plus_uconst 0x8,
DW_OP_deref

Which tries to find some "async reg", but really matches anything. It worked by accident on arm, but not on x86. The correct check is simply:

CHECK-NOT: OP_entry_value

rdar://114831502

With swiftlang/llvm-project#7787 merged, we can now finally
renable these tests, as the x86 swift async handling should be properly
preserved by the x86 instruction selector.

These tests contained some incorrect checks from a time where it was expecting
an entry value even in the entry funclet of coroutines. For example, it had
this:
```
CHECK-NEXT: [[ASYNC_REG:DW_OP_.*], DW_OP_plus_uconst 0x10, DW_OP_plus_uconst 0x8,
DW_OP_deref
```

Which tries to find some "async reg", but really matches anything. It worked by
accident on arm, but not on x86. The correct check is simply:

```
CHECK-NOT: OP_entry_value
```
@felipepiovezan
Copy link
Contributor Author

@felipepiovezan felipepiovezan merged commit 7fd5cae into swiftlang:main Nov 14, 2023
@felipepiovezan felipepiovezan deleted the felipe/reenable_async_x86_test2 branch November 14, 2023 21:57
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.

2 participants