[Mlir-commits] [mlir] [MLIR][LLVM] Add Continuous Loop Peeling transform to SCF (PR #71555)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Thu Nov 9 08:21:20 PST 2023
muneebkhan85 wrote:
> Fantastic! I was thinking about this transformation recently.
>
> > Could you also just create a separate C++ utility function for the core transformation (outside of the transform dialect). Thanks!
>
> You can probably add the transformation itself to `mlir/lib/Dialect/SCF/Transforms/`. We have `LoopSpecialization` there which is also applying a peeling strategy
I have moved the transform to mlir/lib/Dialect/SCF/Transforms/LoopSpecialization.cpp where I have also added the logic to expose this as an independent pass invoked with -scf-for-loop-continuous-peeling. I have also modified the test to use this method instead.
https://github.com/llvm/llvm-project/pull/71555
More information about the Mlir-commits
mailing list