Skip to content
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

Optimize sysimg TLS access on Linux #21738

Merged
merged 1 commit into from
May 11, 2017
Merged

Optimize sysimg TLS access on Linux #21738

merged 1 commit into from
May 11, 2017

Conversation

yuyichao
Copy link
Contributor

@yuyichao yuyichao commented May 7, 2017

The function call showed up in @Keno's profile at some point. This basically makes the sys.so version almost as fast as the jit version (one more load and one more not taken branch) when loaded by the julia executable.

@nanosoldier runbenchmarks(ALL, vs=":master")

@yuyichao yuyichao added compiler:codegen Generation of LLVM IR and native code multithreading Base.Threads and related functionality performance Must go faster labels May 7, 2017
@yuyichao yuyichao force-pushed the yyc/codegen/tls branch from 7690440 to 9cc8cee Compare May 7, 2017 18:01
@nanosoldier
Copy link
Collaborator

Your benchmark job has completed - possible performance regressions were detected. A full report can be found here. cc @jrevels

auto T_int8 = Type::getInt8Ty(ctx);
auto T_pint8 = PointerType::get(T_int8, 0);
# if defined(_CPU_X86_64_) || defined(_CPU_X86_)
// Workaround LLVM bug by hiding the offset computation
Copy link
Contributor

Choose a reason for hiding this comment

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

which bug, is this tracked somewhere?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Member

@StefanKarpinski StefanKarpinski May 8, 2017

Choose a reason for hiding this comment

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

could you put that in the comment for future reference?

@yuyichao yuyichao merged commit 973d926 into master May 11, 2017
@yuyichao yuyichao deleted the yyc/codegen/tls branch May 11, 2017 02:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
compiler:codegen Generation of LLVM IR and native code multithreading Base.Threads and related functionality performance Must go faster
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants