We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b7bce43 commit a505cf5Copy full SHA for a505cf5
flang/lib/Optimizer/Transforms/SimplifyFIROperations.cpp
@@ -186,6 +186,8 @@ class DoConcurrentConversion
186
llvm::cast<mlir::SymbolRefAttr>(localizerSym);
187
fir::LocalitySpecifierOp localizer = findLocalizer(loop, localizerName);
188
189
+ // TODO Should this be a heap allocation instead? For now, we allocate
190
+ // on the stack for each loop iteration.
191
mlir::Value localAlloc =
192
rewriter.create<fir::AllocaOp>(loop.getLoc(), localizer.getType());
193
@@ -210,6 +212,9 @@ class DoConcurrentConversion
210
212
}
211
213
214
rewriter.replaceAllUsesWith(localArg, localAlloc);
215
+
216
+ // TODO localizers with `init` and `dealloc` regions are not handled
217
+ // yet.
218
219
220
loop.getRegion().front().eraseArguments(loop.getNumInductionVars(),
0 commit comments