[flang-commits] [flang] [llvm] [flang][HLFIR] make copyin/copyout allocation inline (PR #224063)
Tom Eccles via flang-commits
flang-commits at lists.llvm.org
Thu Sep 17 07:55:30 PDT 2026
================
@@ -321,28 +387,22 @@ class CopyOutOpConversion : public mlir::OpRewritePattern<hlfir::CopyOutOp> {
fir::FirOpBuilder builder(rewriter, copyOutOp.getOperation());
builder.genIfThen(loc, copyOutOp.getWasCopied())
----------------
tblah wrote:
Could there ever be a case when wasCopied is false but `mustFree` is true? Currently the buffer is only freed if `wasCopied && mustFree`
https://github.com/llvm/llvm-project/pull/224063
More information about the flang-commits
mailing list