[flang-commits] [flang] [Flang][HLFIR] Lower PACK(array, .TRUE.) to hlfir.reshape (PR #213603)
Tom Eccles via flang-commits
flang-commits at lists.llvm.org
Mon Aug 3 05:31:18 PDT 2026
================
@@ -2372,6 +2372,29 @@ genIntrinsicRefCore(Fortran::lower::PreparedActualArguments &loweredActuals,
/// Lower calls to intrinsic procedures with actual arguments that have been
/// pre-lowered but have not yet been prepared according to the interface.
+static bool
+isPackWithScalarTrueMask(const Fortran::evaluate::ProcedureRef &procRef,
----------------
tblah wrote:
I wonder if this should instead add hlfir.pack as a transformational intrinsic and then either lower it to hlfir.reshape or to the existing runtime call? This would be a bit cleaner and match the design of other operations but would involve more boilerplate.
https://github.com/llvm/llvm-project/pull/213603
More information about the flang-commits
mailing list