================ @@ -31,6 +158,14 @@ class DoConcurrentConversion : public mlir::OpConversionPattern<fir::DoLoopOp> { mlir::LogicalResult matchAndRewrite(fir::DoLoopOp doLoop, OpAdaptor adaptor, mlir::ConversionPatternRewriter &rewriter) const override { + looputils::LoopNest loopNest; + bool hasRemainingNestedLoops = + failed(looputils::collectLoopNest(doLoop, loopNest)); + if (hasRemainingNestedLoops) + mlir::emitWarning(doLoop.getLoc(), + "Some `do concurent` loops are not perfectly-nested. " + "These will be serialzied."); ---------------- skatrak wrote:
```suggestion "These will be serialized."); ``` https://github.com/llvm/llvm-project/pull/127595 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits