[mlir][scf] Fix bug in software pipeliner and simplify the logic
authorThomas Raoux <thomasraoux@google.com>
Wed, 8 Mar 2023 17:46:26 +0000 (17:46 +0000)
committerThomas Raoux <thomasraoux@google.com>
Wed, 8 Mar 2023 20:06:07 +0000 (20:06 +0000)
commit117db47d02c174e2ec039fa8b6a97381106e6238
treecb1dd6ef58faaefe7c768c699accfbf361a50938
parentdea96e7dcad81afc8cf96b727a595ad09ee67b12
[mlir][scf] Fix bug in software pipeliner and simplify the logic

Fix bug when pipelining while interleaving stages. Re-do the logic to
only consider cloned operands when updating the use-def chain.

Differential Revision: https://reviews.llvm.org/D145598
mlir/lib/Dialect/SCF/Transforms/LoopPipelining.cpp
mlir/test/Dialect/SCF/loop-pipelining.mlir