[PATCH] D111337: [fir] Add array value copy pass

Valentin Clement via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 23 00:52:19 PST 2021


clementval added a comment.

In D111337#3147981 <https://reviews.llvm.org/D111337#3147981>, @mehdi_amini wrote:

> I think you haven't updated the revision yet.

Sorry, it was stuck on the arc lint phase :(



================
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.
----------------
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. 


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