[Mlir-commits] [mlir] [mlir][SCF] Modernize `coalesceLoops` method to handle `scf.for` loops with iter_args (PR #87019)

Oleksandr Alex Zinenko llvmlistbot at llvm.org
Fri Mar 29 08:06:49 PDT 2024


================
@@ -35,13 +35,17 @@ namespace {
 struct LoopCoalescingPass
     : public affine::impl::LoopCoalescingBase<LoopCoalescingPass> {
 
+  void getDependentDialects(DialectRegistry &registry) const override {
+    registry.insert<affine::AffineDialect>();
+  }
----------------
ftynse wrote:

Why is this necessary? Can this pass produce entities from the affine dialect when none were present in the input?

https://github.com/llvm/llvm-project/pull/87019


More information about the Mlir-commits mailing list