[mlir][Linalg] emitLoopRanges and emitLoopRangesWithSymbols merged into one
authorJakub Lichman <limo@google.com>
Thu, 23 Jul 2020 10:27:46 +0000 (12:27 +0200)
committerAlex Zinenko <zinenko@google.com>
Thu, 23 Jul 2020 10:33:46 +0000 (12:33 +0200)
commit20c3386f4a0bc39aa33512dcad024c678e89f9c4
tree46e126774fed07f4287f4ee7c8b71dcd2842277d
parent919922b0c20e99de51bb0d06c98a5fc2fa5feec4
[mlir][Linalg] emitLoopRanges and emitLoopRangesWithSymbols merged into one

Right now there is a branching for 2 functions based on whether target map has
symbols or not. In this commit these functions are merged into one.
Furthermore, emitting does not require inverse and map applying as it computes
the correct Range in a single step and thus reduces unnecessary overhead.

Differential Revision: https://reviews.llvm.org/D83756
mlir/lib/Dialect/Linalg/Transforms/Loops.cpp