We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5cf9754 commit 41f5ceeCopy full SHA for 41f5cee
flang/lib/Optimizer/Dialect/FIROps.cpp
@@ -4700,6 +4700,9 @@ mlir::LogicalResult SimplifyIsContiguousBoxOp::matchAndRewrite(
4700
return mlir::success();
4701
}
4702
4703
+ // TODO: support more patterns, e.g. a result of fir.embox without
4704
+ // the slice is contiguous. We can add fir::isSimplyContiguous(box)
4705
+ // that walks def-use to figure it out.
4706
return mlir::failure();
4707
4708
@@ -4736,6 +4739,7 @@ mlir::LogicalResult SimplifyBoxTotalElementsOp::matchAndRewrite(
4736
4739
4737
4740
4738
4741
4742
+ // TODO: support more cases, e.g. !fir.box<!fir.array<10xi32>>.
4743
4744
4745
0 commit comments