[mlir] Extend AffineForEmptyLoopFolder
Currently when we fold an empty loop, we assume that any loop with iterArgs returns its iterArgs in order, which is not always the case. It may return values defined outside of the loop or return its iterArgs out of order. This patch adds support to those cases. Reviewed By: dcaballe Differential Revision: https://reviews.llvm.org/D120776
parent
53cc3a06
Please register or sign in to comment