You are viewing a plain text version of this content. The canonical link for it is here.
Posted to discuss-archive@tvm.apache.org by Johnson Lu via Apache TVM Discuss <no...@discuss.tvm.ai> on 2021/03/03 12:43:57 UTC

[Apache TVM Discuss] [Questions] One for loop is disappear after use call_llvm_intrin() in inner most loop


Hi,

I meet a really strange issue when I use call_llvm_intrin() function in my innermost loop.

![Vector|597x500](upload://uwzWmuNPuFvTTlb86RjWCSEuhy1.jpeg) 

From above code, we have three loops, from the IR, only two for loop, see below.

![Vector_IR|690x71](upload://pMikBGETA1OpJHQJh1g5Jh0ro2g.jpeg) 

And report below error later,

TVMError: Not all Vars are passed in api_args:  'k_chunk'  is not bound to any variables

So seems the third loop k_chunk is optimized by PASS or something other part, then in later stage it report k_chunk is not bound to any variables.

Any one have better suggestions?

In my desgin, the intrinsics need to be exectued in int64 format, but need to assign final result to int32, I think in lowering stage, some optimization code remove loop k_chunk due to certain resone.





---
[Visit Topic](https://discuss.tvm.apache.org/t/one-for-loop-is-disappear-after-use-call-llvm-intrin-in-inner-most-loop/9292/1) to respond.

You are receiving this because you enabled mailing list mode.

To unsubscribe from these emails, [click here](https://discuss.tvm.apache.org/email/unsubscribe/4838e127b5d9f8edd48a61260a70e28206abbc3a11bf37b2df77e89828b66bff).