Sequence type had no restriction on the insert_on_range operation.
This patch adds a restriction for the type to have constant shape
and size.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
| flang/lib/Optimizer/Dialect/FIROps.cpp | ||
|---|---|---|
| 1392 | Isn't this second check already covered by hasDynamicSize? if (auto arr = t.dyn_cast<fir::SequenceType>()) {
if (sequenceWithNonConstantShape(arr))
return true;LG otherwise | |
| 1392 | Oh also please update the doc for the op in the ODS definition | |
| flang/lib/Optimizer/Dialect/FIROps.cpp | ||
|---|---|---|
| 1392 | Yes sequenceWithNonConstantShape is included in hasDynamicSize. ODS definition updated. | |
Isn't this second check already covered by hasDynamicSize?
The code there starts with:
if (auto arr = t.dyn_cast<fir::SequenceType>()) { if (sequenceWithNonConstantShape(arr)) return true;LG otherwise