[PATCH] D112896: [fir] Add fir.insert_on_range conversion
Mehdi AMINI via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Nov 2 16:23:08 PDT 2021
mehdi_amini added inline comments.
================
Comment at: flang/lib/Optimizer/CodeGen/CodeGen.cpp:211
+ while (auto t = type.dyn_cast<mlir::LLVM::LLVMArrayType>()) {
+ dims.push_back(t.getNumElements());
+ type = t.getElementType();
----------------
How do we guarantee that we have a static array type? This will crash with an IR with dynamic shape.
Right now the InsertOnRangeOp is defined as taking a fir_SequenceType which isn't restricted to static shapes.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D112896/new/
https://reviews.llvm.org/D112896
More information about the llvm-commits
mailing list