[Mlir-commits] [flang] [mlir] [mlir][OpenMP] Separate OutlinableInterface from taskloop LoopWrapper (PR #188068)

Sergio Afonso llvmlistbot at llvm.org
Wed Apr 1 08:35:46 PDT 2026


================
@@ -3092,6 +3121,7 @@ convertOmpTaskloopOp(Operation &opInst, llvm::IRBuilderBase &builder,
 
   auto loopInfo = [&]() -> llvm::Expected<llvm::CanonicalLoopInfo *> {
     llvm::CanonicalLoopInfo *loopInfo = findCurrentLoopInfo(moduleTranslation);
+    assert(loopInfo && "Couldn't find loopInfo for taskloop");
----------------
skatrak wrote:

Nit: We kind of assume `findCurrentLoopInfo` never returns `null` from where it's called, so not sure if it should assert itself or if all its current users should assert.

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


More information about the Mlir-commits mailing list