diff options
author | Uday Bondhugula <uday@polymagelabs.com> | 2022-12-14 22:55:20 +0530 |
---|---|---|
committer | Uday Bondhugula <uday@polymagelabs.com> | 2022-12-14 22:56:29 +0530 |
commit | fe9d0a47d55ff3c55d8caa03c55c2651985b2f0a (patch) | |
tree | 97591e2d41f4a2b1fa97b8381904fd533c154346 /llvm/lib/FileCheck/FileCheck.cpp | |
parent | dc44acc9654116701159a6ebdd6ccf62211fd35a (diff) | |
download | llvm-fe9d0a47d55ff3c55d8caa03c55c2651985b2f0a.zip llvm-fe9d0a47d55ff3c55d8caa03c55c2651985b2f0a.tar.gz llvm-fe9d0a47d55ff3c55d8caa03c55c2651985b2f0a.tar.bz2 |
[MLIR] Generalize affine fusion to work on `Block` instead of `FuncOp`
The affine fusion pass can actually work on the top-level of a `Block`
and doesn't require to be called on a `FuncOp`. Remove this restriction
and generalize the pass to work on any `Block`. This allows fusion to be
performed, for example, on multiple blocks of a FuncOp or any
region-holding op like an scf.while, scf.if or even at an inner depth of
an affine.for or affine.if op. This generalization has no effect on
existing functionality. No changes to the fusion logic or its
transformational power were needed.
Update fusion pass to be a generic operation pass (instead of FuncOp
pass) and remove references and assumptions on the parent being a
FuncOp.
Reviewed By: dcaballe
Differential Revision: https://reviews.llvm.org/D139293
Diffstat (limited to 'llvm/lib/FileCheck/FileCheck.cpp')
0 files changed, 0 insertions, 0 deletions