-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
[RISC-V] Enable TLS field access optimization #89561
[RISC-V] Enable TLS field access optimization #89561
Conversation
Tagging subscribers to this area: @JulieLeeMSFT, @jakobbotsch Issue DetailsRe-enable TLS field access optimization which was disabled in #88584 as a temporary measure to fix failing tests. The implementation is analogous to the PR #88819 for loongarch64. Part of #84834
|
@dotnet-policy-service agree company="Samsung" |
@jakobbotsch @jkotas Could you please review this 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.
LGTM
// | ||
// Code sequence to access thread local variable on linux/riscv64: | ||
// | ||
// mov targetReg, $tp, 0 |
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.
mov targetReg, $tp
is ok ?
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.
Yes, that's what gcc/clang emits on RISC-V to access a thread local var.
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.
Thanks
@tomeksowi Congratulations for the first landing. :) |
Re-enable inline TLS field access optimization which was disabled in #88584 as a temporary measure to fix failing tests. The implementation is analogous to the PR #88819 for loongarch64.
Part of #84834
cc @wscho77 @HJLeee @JongHeonChoi @t-mustafin @alpencolt @gbalykov @clamp03