You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tvm.apache.org by GitBox <gi...@apache.org> on 2020/12/04 10:56:10 UTC

[GitHub] [tvm] hzfan edited a comment on issue #6691: [Performance] Performance regression with int64 indices INDEX_DEFAULT_I64=ON (PR #6143)

hzfan edited a comment on issue #6691:
URL: https://github.com/apache/tvm/issues/6691#issuecomment-738715741


   @tqchen The cast originates from https://github.com/apache/tvm/blob/main/src/te/schedule/operation_inline.cc#L67
   For example, before inline,
   ```
   for i from 0(i32) to 10(i32)
     for j from 0(i32) to 10(i32)
       T_add[i, j] = placeholder[100(i32) + i - j]
   
   for i from 0(i64) to 9(i64)
     result[i] = T_add[i, i + 1]
   ```
   
   after inline,
   
   ```
   result[i] = placeholder[100(i32) + cast(i32, i) - cast(i32, i + 1)]
   ```
   
   Perhaps I can do something with the SumExpr in CanonicalSimplifier to simplify this case.


----------------------------------------------------------------
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.

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