[PATCH] D111337: [fir] Add array value copy pass
Kiran Chandramohan via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Nov 25 02:00:23 PST 2021
kiranchandramohan added inline comments.
================
Comment at: flang/lib/Optimizer/Transforms/ArrayValueCopy.cpp:120
+
+ void collectArrayAccessFrom(mlir::Operation *op, mlir::Value val) {
+ // `val` is defined by an Op, process the defining Op.
----------------
clementval wrote:
> mehdi_amini wrote:
> > clementval wrote:
> > > mehdi_amini wrote:
> > > > I am very concerned about a recursive algorithm on def-use chain: this is a ticking bomb for a stack overflow in the compiler.
> > > > Can you make this an iterative algorithm with an explicit stack?
> > > Would it be ok to address this in a follow up patch? I just added a todo right now.
> > How to we track that this get addressed though? I'm wary of TODO that will stay here for a while.
> > Is someone gonna commit to work on this ASAP?
> I can work on that in the next 2-3 weeks probably.
I have created an issue to capture this in the upstreaming FIR Passes board.
https://github.com/flang-compiler/f18-llvm-project/projects/7
https://github.com/flang-compiler/f18-llvm-project/issues/1268
@clementval if this is just about converting to an iterative version then we can help.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D111337/new/
https://reviews.llvm.org/D111337
More information about the llvm-commits
mailing list