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

[bugpoint] JIT debugger generates really inefficient function stubs #948

Closed
lattner opened this issue Jun 10, 2005 · 3 comments
Closed

[bugpoint] JIT debugger generates really inefficient function stubs #948

lattner opened this issue Jun 10, 2005 · 3 comments
Assignees

Comments

@lattner
Copy link
Collaborator

lattner commented Jun 10, 2005

Bugzilla Link 576
Resolution FIXED
Resolved on Feb 22, 2010 12:41
Version 1.3
OS All

Extended Description

Bugpoint has to emit function stubs that call getPointerToNamedFunction to find code generated by the
JIT. It would be nice if it only did this the first time it was called. Instead of emitting:

internal void %l33_main_no_exit_2E_i305_2E_i_wrapper(sbyte*, uint*) {
%resolver = call sbyte* %getPointerToNamedFunction( sbyte* getelementptr ([30 x sbyte]* %
l33_main_no_exit_2E_i305_2E_i_name, int 0, int 0) ) ; <sbyte*> [#uses=1]
%resolverCast = cast sbyte* %resolver to void (sbyte*, uint*)* ; <void (sbyte*, uint*)>
[#uses=1]
call void %resolverCast( sbyte
%0, uint* %0 )
ret void
}

we would like to use something like a static var to remember this. This should be done in
Miscompilation.cpp:CleanupAndPrepareModules.

-Chris

@lattner
Copy link
Collaborator Author

lattner commented Jun 10, 2005

assigned to @lattner

@lattner
Copy link
Collaborator Author

lattner commented Jun 10, 2005

Oh yeah, this would make JIT debugging like 3x faster on some programs.

:)

-Chris

@lattner
Copy link
Collaborator Author

lattner commented Jul 12, 2005

This enhancement is now implemented, patch here:
http://mail.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20050711/026997.html

-Chris

@llvmbot llvmbot transferred this issue from llvm/llvm-bugzilla-archive Dec 3, 2021
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant