syang-ng commented on issue #9407:
URL: https://github.com/apache/tvm/issues/9407#issuecomment-968881614


   I think another crash is triggered because of the same reason. Here is the 
example code to trigger this crash:
   
   ```python
   import tvm
   
   var = tvm.tir.Var('var', dtype='int32')
   loop_var = tvm.tir.Var('loop_var', dtype='int32')
   min_val = tvm.tir.floormod(loop_var+1, tvm.tir.const(3))
   none = tvm.tir.Evaluate(tvm.tir.const(0))
   
   seq = tvm.tir.SeqStmt([
       tvm.tir.LetStmt(var, tvm.tir.const(1), body=none),
       tvm.tir.For(loop_var=loop_var, min_val=min_val, extent=var, 
kind=tvm.tir.ForKind.SERIAL, body=none)
   ])
   
   func = tvm.tir.PrimFunc(params=[var], body=seq)
   print(func)
   tvm.build(func)
   ```


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to