Skip to content

Commit 5855225

Browse files
committed
More todos
1 parent a505cf5 commit 5855225

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

flang/lib/Optimizer/Transforms/SimplifyFIROperations.cpp

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,11 @@ class DoConcurrentConversion
186186
llvm::cast<mlir::SymbolRefAttr>(localizerSym);
187187
fir::LocalitySpecifierOp localizer = findLocalizer(loop, localizerName);
188188

189+
if (!localizer.getInitRegion().empty() ||
190+
!localizer.getDeallocRegion().empty())
191+
TODO(localizer.getLoc(), "localizers with `init` and `dealloc` "
192+
"regions are not handled yet.");
193+
189194
// TODO Should this be a heap allocation instead? For now, we allocate
190195
// on the stack for each loop iteration.
191196
mlir::Value localAlloc =
@@ -212,9 +217,6 @@ class DoConcurrentConversion
212217
}
213218

214219
rewriter.replaceAllUsesWith(localArg, localAlloc);
215-
216-
// TODO localizers with `init` and `dealloc` regions are not handled
217-
// yet.
218220
}
219221

220222
loop.getRegion().front().eraseArguments(loop.getNumInductionVars(),

0 commit comments

Comments
 (0)