[PATCH] D112845: [fir] Add base of the FIR to LLVM IR pass
    Mehdi AMINI via Phabricator via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Mon Nov  1 13:37:19 PDT 2021
    
    
  
mehdi_amini added inline comments.
================
Comment at: flang/lib/Optimizer/CodeGen/CodeGen.cpp:95
+      // Replace insert_on_range with a constant dense attribute if the
+      // initialization is on the full range.
+      auto insertOnRangeOps = gr.front().getOps<fir::InsertOnRangeOp>();
----------------
clementval wrote:
> mehdi_amini wrote:
> > clementval wrote:
> > > mehdi_amini wrote:
> > > > Isn't this something that should be a `fold()` on the insert_on_range op instead?
> > > I'll look at that in a separate patch.
> > WDYT of this?
> As mentioned I'll look at this and issue a separate patch since it's a somewhat bigger change than the others requested.  Keep it undone until the patch is up for review. 
I think you just hadn't sent the previous comment before, they got sent together :)
Repository:
  rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D112845/new/
https://reviews.llvm.org/D112845
    
    
More information about the llvm-commits
mailing list