Skip to content

Commit a505cf5

Browse files
committed
add todos
1 parent b7bce43 commit a505cf5

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

flang/lib/Optimizer/Transforms/SimplifyFIROperations.cpp

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

189+
// TODO Should this be a heap allocation instead? For now, we allocate
190+
// on the stack for each loop iteration.
189191
mlir::Value localAlloc =
190192
rewriter.create<fir::AllocaOp>(loop.getLoc(), localizer.getType());
191193

@@ -210,6 +212,9 @@ class DoConcurrentConversion
210212
}
211213

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

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

0 commit comments

Comments
 (0)