[Mlir-commits] [mlir] [SCF][Transform] Add support for scf.for in LoopFuseSibling op (PR #81495)

Rolf Morel llvmlistbot at llvm.org
Thu Mar 28 03:39:43 PDT 2024


================
@@ -511,7 +532,8 @@ transform::LoopFuseSibling::apply(transform::TransformRewriter &rewriter,
     return diag;
 
   // Check if the target can be fused into source.
-  if (!isForallWithIdenticalConfiguration(target, source)) {
+  if (!isForallWithIdenticalConfiguration(target, source) &&
+      !isForWithIdenticalConfiguration(target, source)) {
----------------
rolfmorel wrote:

Agreed that this was a bit wasteful. Have now adopted your suggestion (and gotten rid of the `fuseSiblings` function).

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


More information about the Mlir-commits mailing list