-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
[mono][aot] Remove method body for inlined methods #82907
Comments
Tagging subscribers to 'size-reduction': @eerhardt, @SamMonoRT, @marek-safar Issue DetailsWhen a method is inlined, its implicit reference still exists in a
/cc: @ivanpovazan
|
@ivanpovazan According to your experiment, does the following code snipped in runtime/src/mono/mono/mini/aot-compiler.c Lines 10766 to 10782 in e57bb02
|
@kotlarmilos, yes here is the change from the experiment: |
To enable the optimization, the AOT compiler should check if a method isn't called through reflection in
|
I have provided more details in the |
Thanks! As you outlined, the idea is to estimate potential improvements (size savings and better performance) before proceeding with the concrete implementation. |
Obsolete, lower priority compared to other tasks. |
When a method is inlined, its implicit reference still exists in a
method_addresses
table and native linker can't remove its body. For example, if_HelloWorld_MyGen_Bar
is inlined and not called indirectly, then its method body is not needed during the runtime./cc: @ivanpovazan
The text was updated successfully, but these errors were encountered: