-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
[AOT] Remove lookup parameter function in AOT #7988
Conversation
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.
sorry for the delay @giuseros , just a couple small comments now.
This PR aims at removing the function call to extract the parameters within the AOT main function by introducing a tir::lookup_param builtin. This has different benefits: - In AOT we now only use the v_handle field - We save cycles by not calling an intermediate function to extract local parameters - We reduce code size, since we don't need to pack a call to extract parameters and we don't need to produce the lookup_param function anymore within the compilation unit Change-Id: I36c2f0724a79606424a4374f4f5cd669bb2a8a55
Change-Id: I83ba0189f559d310b5a80fe0bcc4d601b490d21a
3692704
to
c7109ca
Compare
Hi @areusch sorry for the delayed reply. Somehow my github notifications were not working properly. |
Change-Id: I84ab4a526d1284ded41fe95636e94c15412f6b28
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 @giuseros !
* AOT] Remove lookup parameter function in AOT This PR aims at removing the function call to extract the parameters within the AOT main function by introducing a tir::lookup_param builtin. This has different benefits: - In AOT we now only use the v_handle field - We save cycles by not calling an intermediate function to extract local parameters - We reduce code size, since we don't need to pack a call to extract parameters and we don't need to produce the lookup_param function anymore within the compilation unit Change-Id: I36c2f0724a79606424a4374f4f5cd669bb2a8a55 * addressing comments Change-Id: I83ba0189f559d310b5a80fe0bcc4d601b490d21a * retrigger CI Change-Id: I84ab4a526d1284ded41fe95636e94c15412f6b28
* AOT] Remove lookup parameter function in AOT This PR aims at removing the function call to extract the parameters within the AOT main function by introducing a tir::lookup_param builtin. This has different benefits: - In AOT we now only use the v_handle field - We save cycles by not calling an intermediate function to extract local parameters - We reduce code size, since we don't need to pack a call to extract parameters and we don't need to produce the lookup_param function anymore within the compilation unit Change-Id: I36c2f0724a79606424a4374f4f5cd669bb2a8a55 * addressing comments Change-Id: I83ba0189f559d310b5a80fe0bcc4d601b490d21a * retrigger CI Change-Id: I84ab4a526d1284ded41fe95636e94c15412f6b28
This PR aims at removing the function call to extract the parameters
within the AOT main function by introducing a
tir::lookup_param
builtin.This has different benefits:
v_handle
field of theTVMValue
structlocal parameters
parameters and we don't need to produce the
lookup_param
functionanymore within the compilation unit
Change-Id: I36c2f0724a79606424a4374f4f5cd669bb2a8a55