[Pass] Incorrect CallOp/FuncOp arguments using .outline()
Closed this issue · 0 comments
chhzh123 commented
Consider the following two nested loops, if the j
loop is first parameterized, and i
, and k
are parameterized when calling the second .outline()
operation.
for i in (0, 10)
# ...
for j in (0, 8)
for k in (0, 6)
# ...
The parameterized version will become
for i in (0, %arg1):
# ...
for j in (0, %arg0):
for k in (0, %arg2):
# ...
However, the CallOp operands are (10, 8, 6)
which corresponds to the original order (i, j, k)
, leading to errors.