-
Notifications
You must be signed in to change notification settings - Fork 99
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
Use lld on clang-aarch64-full-2stage #281
Conversation
We have another bot that uses lld, linaro-clang-aarch64-lld-2stage. However it does not build flang or mlir. I don't think we really need both, so I've added the lld settings to clang-aarch64-full-2stage as well. If this is stable then we can remove linaro-clang-aarch64-lld-2stage.
02a5785
to
7172116
Compare
'--threads=32', '--build-threads=32'], | ||
extra_cmake_args=[ | ||
"-DCMAKE_C_FLAGS='-mcpu=cortex-a57'", | ||
"-DCMAKE_CXX_FLAGS='-mcpu=cortex-a57'", | ||
"-DLLVM_ENABLE_LLD=True", | ||
"-DLLVM_LIT_ARGS='-v'", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess we should use -DCLANG_DEFAULT_LINKER=lld but I am little unsure about what -DLLVM_ENABLE_LLD=True does.
Also now that we are making changes to this builder, let change the cpu setting as well. I guess this will run on AWS which may use -mcpu=neoverse-v1 or something similar?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ampere Mountain Jade something but yes we should do that anyway I'll do that in a new PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems a good idea, but this means we won't test ld
on 2-stage AArch64 builds anymore, right?
It looks like it will be tested only by clang-aarch64-quick and clang-aarch64-global-isel builders.
True. Let me check what the SVE bots do right now. If those are all lld or close to it, maybe we keep this one using |
On second thought, I don't have the enthusiasm to figure out the risk of losing I did consider adding the MLIR testing to this builder also, so that it would be the same as the lld if we wanted to merge them in future. However, the lld bot also includes Flang, and adding that will probably break some memory limits, so I decided against doing that. In the future when SVE is standard, we can merge a lot of our non-AWS and AWS based builders, and this will be a much bigger saving. |
We have another bot that uses lld, linaro-clang-aarch64-lld-2stage. However it does not build flang or mlir.
I don't think we really need both, so I've added the lld settings to clang-aarch64-full-2stage as well.
If this is stable then we can remove linaro-clang-aarch64-lld-2stage.