-
Notifications
You must be signed in to change notification settings - Fork 12.2k
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
[AArch64] llvm-bolt crash on aarch64 platform #61075
Comments
@llvm/issue-subscribers-bolt |
BOLT instrumentation is not supported on AArch64. |
Another quesion: Is BOLT sampling mode supported on AArch64?
BOLT-INFO: Starting stub-insertion pass |
Yes, sampling is the only supported profiling method on AArch64. Invoke it like this:
cc @yota9 |
ok,thank u your reply. I will try it. |
|
That's a bit unexpected that bughunter reduced to a BOLT crash. It would also be nice to produce an assembly test using with asm-dump (but I never tested it with AArch64):
If it doesn't crash, please upload the contents of produced funcname.s file to pastebin/github gist. |
|
|
What's there on MCPlusBuilder.h:1581? There is nothing on master branch |
Anyway please update the bolt to the latest commits and also could you run it under GDB and show me the place where the crash occurred? What linker do you use to link the application? Is it PIE or EXEC? |
|
clang version 13.0.1, ld.lld. I'll try lastest version for it. |
I see, well I've never tried funcs-file my self, so never fall through to scanExternalRefs->createRelocation. AFAIR long time ago there were some other complications for aarch64 to support scanExternalRefs, cause createRelocation looks easy to support. But I propose not to use this option for now. Please try master branch and your normal command "llvm-bolt ./speed_finder_bm -o speed_finder_bm.bolt -data=perf.fdata -reorder-blocks=ext-tsp -reorder-functions=hfsort+ -split-functions -split-all-cold -split-eh -dyno-stats" for now and if it would fail let's see under GDB what is going on there. |
I updated bolt with the latest commits,no crash occurred. But performance no obviously improved. Anyway, thank you all for your reply,sincerely. |
Compiler Flags:
The text was updated successfully, but these errors were encountered: