Closed wenhu1024 closed 2 weeks ago
@ShivaChen @GaoXiangYa
The failure might be caused by the upper bound constant didn't be hoisted out of the loop. SCF loop required the loop upper bound as an input operand. So we have -cir-mlir-scf-prepare pass to hoist the boundary value. cir-opt usage might need to add the pass in the command line.
Thanks a lot, the command line works now.
cir-opt -cir-mlir-scf-prepare -cir-to-mlir for.cir -o for.mlir
Looks like issue is solved, closing
Hello, I am a newcomer. I meet an issue when use cir-opt to lower ForOp to scf. Here are some details.
Here is the for.cir I get.
the error information:
What is the meaning of that?
for.mlir is here
The second measure can get mlir directly without cir file, why this command work well but the first measure not work?