blufissure opened a new issue, #14756: URL: https://github.com/apache/tvm/issues/14756
Hello, These days I constructed some PrimFunc files and I found that the unroll loop ran more slower than the other forkind loop in some situations. I tested the For statement with different forkind and a big length of the loop. I’m curious about the reason why the unroll loop runs slower with the big extent. ### Expected behavior The different loop forkinds have the same speeds. ### Actual behavior The unroll loop ran slower than the other rorkinds loop.  ### Environment TVM 0.10dev0 ,git commit ee319d9d23c80091da9c4fb764b1e6d49d462714 ### Steps to reproduce ```python import tvm from tvm import tir import time c1=tir.const(32450,'uint32') c2=tir.const(15000000,'uint32') v1=tir.Var('v1','uint32') for1=tir.For(v1,c1,c2,3,tir.Evaluate(1)) f1=tir.PrimFunc([],for1) for2=tir.For(v1,c1,c2,1,tir.Evaluate(1)) f2=tir.PrimFunc([],for2) for3=tir.For(v1,c1,c2,0,tir.Evaluate(1)) f3=tir.PrimFunc([],for3) t0=time.time() tvm.build(f2) print(time.time()-t0) t1=time.time() tvm.build(f3) print(time.time()-t1) t2=time.time() tvm.build(f1) print(time.time()-t2) ``` ### Triage * tir.op * needs-triage -- 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]
