aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineInstr.cpp
diff options
context:
space:
mode:
authorMaheshRavishankar <ravishankarm@google.com>2021-04-08 22:30:49 -0700
committerMaheshRavishankar <ravishankarm@google.com>2021-04-08 22:31:29 -0700
commitf4eb681dc37ae84e08579bf96cd2a6f58c44f260 (patch)
tree6b887b9ba36f112edc119b76ff2f89bb8ba662ef /llvm/lib/CodeGen/MachineInstr.cpp
parent097d77d611d1e1b3972be661fdc3caaa4d1824b4 (diff)
downloadllvm-f4eb681dc37ae84e08579bf96cd2a6f58c44f260.zip
llvm-f4eb681dc37ae84e08579bf96cd2a6f58c44f260.tar.gz
llvm-f4eb681dc37ae84e08579bf96cd2a6f58c44f260.tar.bz2
[mlir][Linalg] Drop unit-trip loops of reductions only if other reduction loops exists.
Recent change enable dropping unit-trip loops of "reduction" iterator type as well. This is fine as long as there is one other "reduction" iterator in the operation. Without this the initialized value (value of `out`) is not read which leads to a correctness issue. Also fix a bug in the `fill` -> `tensor_reshape` folding. The `out` operand of the `fill` needs to be reshaped to get the `out` operand of the generated `fill` operation. Differential Revision: https://reviews.llvm.org/D100145
Diffstat (limited to 'llvm/lib/CodeGen/MachineInstr.cpp')
0 files changed, 0 insertions, 0 deletions