Skip to content

[test] Use -emit-sorted-sil and reorder CHECKs to match output. #28339

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
merged 1 commit into from
Nov 21, 2019

Conversation

drodriguez
Copy link
Contributor

In some cases (Android ARMv7) the SIL output wasn't following the output
of the source code, and the test failed. Use -emit-sorted-sil to use a
stable sorting for the SIL, and reorder the source to match the SIL
output. Additionally I surrounded all the tests with the string literal quotes, so sorter checks do not match a longer test happening later (for example nested func body inside @inlinable func body matching the prefix nested func body inside @inlinable func body taking local type).

The output is now the same order not depending on the value of
StripOwnershipAfterSerialization.

Found in #28042.

In some cases (Android ARMv7) the SIL output wasn't following the output
of the source code, and the test failed. Use -emit-sorted-sil to use a
stable sorting for the SIL, and reorder the source to match the SIL
output.

The output is now the same order not depending on the value of
StripOwnershipAfterSerialization.
@drodriguez
Copy link
Contributor Author

@swift-ci please smoke test

@compnerd
Copy link
Member

CC: @gottesmm

@compnerd
Copy link
Member

I don't have an issue with this, though IIRC, @gottesmm tended to prefer to avoid the -emit-sorted-sil.

@shahmishal
Copy link
Member

@swift-ci test

@drodriguez
Copy link
Contributor Author

I'm going to merge this to avoid further breakage in the Android builds. @gottesmm if you have any problem with using-emit-sorted-sil, we can try to figure out a solution later.

@drodriguez drodriguez merged commit ea56a63 into swiftlang:master Nov 21, 2019
@drodriguez drodriguez deleted the android-sort-sil-output branch November 21, 2019 00:04
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.

4 participants