[mlir][TilingInterface] Fix use after free error from D141028.
authorMahesh Ravishankar <ravishankarm@google.com>
Mon, 16 Jan 2023 20:50:59 +0000 (20:50 +0000)
committerMahesh Ravishankar <ravishankarm@google.com>
Mon, 16 Jan 2023 20:59:50 +0000 (20:59 +0000)
commitdbbd9070152a2b1a28a1617437c75ed9491932c6
tree44e6bb96c5db358d52598b9218678fd445ba6df1
parentb3d8639f3536a4876b511aca9fb7948ff9266cee
[mlir][TilingInterface] Fix use after free error from D141028.

The `candidateSliceOp` was replaces and used in a subsequent
call. Instead just replace its uses. The op is dead and will be
removed with CSE.

Differential Revision: https://reviews.llvm.org/D141869
mlir/include/mlir/Dialect/SCF/Transforms/TileUsingInterface.h
mlir/lib/Dialect/SCF/Transforms/TileUsingInterface.cpp