Skip to content

[android][armv7] Mark let_properties_opts.swift as XFAIL. #30390

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

drodriguez
Copy link
Contributor

@drodriguez drodriguez commented Mar 12, 2020

Looks like Android ARMv7 is not inline storeBytes so the test were
failing. Mark the test as XFAIL and open a bug in the tracker to keep
the CI green for the moment.

The problem appeared after https://ci-external.swift.org/job/oss-swift-RA-linux-ubuntu-16.04-android/5667/ (probably 5668, but it is not longer available). One can see the error in https://ci-external.swift.org/job/oss-swift-RA-linux-ubuntu-16.04-android/5691/. From running the code, it looks like in ARMv7 (32 bits) the code is not inlined, so the generated SIL is different.

@drodriguez drodriguez requested a review from atrick March 12, 2020 22:34
@drodriguez
Copy link
Contributor Author

Is there any other 32 bit platform? (Specially one that Apple cares about?)

@swift-ci please test

@swift-ci
Copy link
Contributor

Build failed
Swift Test OS X Platform
Git Sha - d319a05d18bac812d78bf5a5ec2550152ad7cbf4

@compnerd
Copy link
Member

ARMv7k is 32-bits, definitely is important

@drodriguez
Copy link
Contributor Author

And seems that the iPhone Simulator i386 as well. I will have to come with another approach or figure out why the inlining is not happening in Android ARMv7.

Looks like Android ARMv7 is not inline storeBytes so the test were
failing. Mark the test as XFAIL and open a bug in the tracker to keep
the CI green for the moment.
@drodriguez drodriguez force-pushed the android-let-properties-opts-armv7 branch from d319a05 to 6ac04c6 Compare March 16, 2020 02:16
@drodriguez drodriguez changed the title [android][armv7] Provide code path for 32 bit platforms. [android][armv7] Mark let_properties_opts.swift as XFAIL. Mar 16, 2020
@drodriguez
Copy link
Contributor Author

I don't think I can fix this by myself in my free time. I opened https://bugs.swift.org/browse/SR-12370 with a little bit more information, and I have xfailed this test to keep CI going on. Looks like many optimizations are not taken in storeBytes, which makes it too big to inline.

@swift-ci please test

@swift-ci
Copy link
Contributor

Build failed
Swift Test OS X Platform
Git Sha - 6ac04c6

Copy link
Contributor

@atrick atrick left a comment

Choose a reason for hiding this comment

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

Thanks. It's strange that storeBytes didn't get inlined. I'm surprised it's so big in an optimized stdlib.

@atrick
Copy link
Contributor

atrick commented Mar 16, 2020

@swift-ci test macOS

@swift-ci
Copy link
Contributor

Build failed
Swift Test OS X Platform
Git Sha - 6ac04c6

@atrick
Copy link
Contributor

atrick commented Mar 16, 2020

I can't understand why this failed OSX testing, maybe it was spurioius.

@atrick
Copy link
Contributor

atrick commented Mar 16, 2020

@swift-ci test OS X

@drodriguez drodriguez merged commit 2af51be into swiftlang:master Mar 17, 2020
@drodriguez drodriguez deleted the android-let-properties-opts-armv7 branch March 17, 2020 06:14
@drodriguez
Copy link
Contributor Author

Thanks for restarting the CI! Hopefully the Android CI will get green again.

drodriguez added a commit to drodriguez/swift that referenced this pull request Nov 3, 2020
These tests were disabled in swiftlang#33500 (a0333a4) and swiftlang#30390
(6ac04c6) because the optimizer did not seem to be working in
Android ARMv7.

At some moment between October 21st and October 30th something unbroke
the tests. I have looked into the changes in the SILOptimizer directory,
but I cannot pinpoint it to any of them in particular. It might be also
changes introduced in LLVM.
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