-
Notifications
You must be signed in to change notification settings - Fork 262
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
[BUG] Local stack slot allocation compiler crash on SVE conversion #1834
Comments
yeah, i hit issues trying to enable SVE for the OS itself. talking to Arm they didn't seem surprised, and said that SVE support isn't finished yet. (iirc we've seen linker crashes too.) this is potentially slightly different because you're trying to use the intrinsics directly rather than the compiler's autovectorization, so i'll make sure we mention this to Arm too. |
The bug takes place in clang-r450784d, clang-r450784d1, clang-r450784e, but it has been fixed in the next Android toolchain: clang-r458507 |
If it's still an experimental feature it's not something we usually consider for backports. Likely that it's enough cherry-picks that it risks destabilizing the release. @pirama-arumuga-nainar, wdyt?
Excellent, thanks for confirming! Leaving this bug open since the canary branch is still on the older toolchain. |
@ilinpv: can you bisect to find the commit for the fix? The complexity of the fix could inform us better.
👍 SGTM. Like @enh-google mentioned, there's at least one another issue with sve support in clang. More importantly, it is only usable via FMV (which might be available in r26) or ifuncs. So it'd be prudent for interested users to move to sve when r26 is released. |
There are a few SVE crash fixes cherry picked from trunk to llvm-14: |
Talked with @stephenhines and @pirama-arumuga-nainar a bit more and they let me know that that's not really the case here. We're going to check if these are regressions from r24 and have a look at the patches to make sure we can safely take them without risking the stability of the rest of the toolchain. If they look safe, we'll triage this for r25d as well. |
Description
Running
~/Android/android-ndk-r25b/toolchains/llvm/prebuilt/linux-x86_64/bin/clang++ main.cpp --target=aarch64-linux-android25 -march=armv8-a+sve -O0 -c
on current ndk r25b we got
main-d11bac.zip
Affected versions
r25, Canary
Canary version
android-ndk-9512540-linux-x86_64
Host OS
Linux
Host OS version
Ubuntu 22.04 LTS
Affected ABIs
arm64-v8a
Build system
ndk-build
Other build system
No response
minSdkVersion
0
Device API level
No response
The text was updated successfully, but these errors were encountered: