[flang-commits] [flang] [flang] Optimize redundant array repacking. (PR #147881)
Tom Eccles via flang-commits
flang-commits at lists.llvm.org
Thu Jul 10 07:21:04 PDT 2025
================
@@ -1944,6 +1944,128 @@ llvm::LogicalResult fir::EmboxOp::verify() {
return mlir::success();
}
+/// Returns true if \p extent matches the extent of the \p box's
+/// dimension \p dim.
+bool isBoxExtent(mlir::Value box, std::int64_t dim, mlir::Value extent) {
----------------
tblah wrote:
nit: can this be static? (and below)
https://github.com/llvm/llvm-project/pull/147881
More information about the flang-commits
mailing list