[GitHub] [tvm] Lunderberg commented on pull request #12607: [TIR] More hygenic TVM_SREF macros

2022-08-25 Thread GitBox


Lunderberg commented on PR #12607:
URL: https://github.com/apache/tvm/pull/12607#issuecomment-1227887259

   Cool, cool!  I wasn't sure if there were other benefits to the macro that I 
had been missing, and wanted to be careful about breakage when tromping on a 
less familiar part of the codebase.
   
   Regarding inlining, my understanding is that lambdas can always be inlined 
by the as-if rule, and their limited scope usually lets the compiler be more 
aggressive about inlining than for normal functions.  I hadn't ever verified 
this from the assembly before, but a couple of quick godbolt comparisons 
([function call not marked inline](https://godbolt.org/z/njG1fK6oz), [function 
call marked inline](https://godbolt.org/z/f1W6P87zT), [immediately invoked 
lambda](https://godbolt.org/z/G7cn1nevK)) confirm that lambdas can be inlined 
with the same gcc version/optimization settings as are used on TVM's CI.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@tvm.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



[GitHub] [tvm] Lunderberg commented on pull request #12607: [TIR] More hygenic TVM_SREF macros

2022-08-25 Thread GitBox


Lunderberg commented on PR #12607:
URL: https://github.com/apache/tvm/pull/12607#issuecomment-1227775931

   This is currently opened as a draft PR, to see if there are breakages that 
weren't caught, and whether there should be a rollover from the 
output-parameter version to the new version.  It's only an internal macro, but 
it could cause additional merge conflicts with existing PRs.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@tvm.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org