[flang] Switch spread first argument lowering from asAddr to asBox
authorValentin Clement <clementval@gmail.com>
Mon, 16 Jan 2023 08:37:38 +0000 (09:37 +0100)
committerValentin Clement <clementval@gmail.com>
Mon, 16 Jan 2023 08:38:35 +0000 (09:38 +0100)
commitb326b344cd32d1cd9a7fb768acfbb6ce325bc7b1
tree5a177c55d98da52954c307d3760f9ab7cdb955c2
parent0b19ac83005021ce084c9da1d436e86015bfb2f8
[flang] Switch spread first argument lowering from asAddr to asBox

Use asBox so no simply contiguous argument do not issue a copy and also
support polymorphic entity out of the box.

Depends on D141667

Reviewed By: jeanPerier, PeteSteinfeld

Differential Revision: https://reviews.llvm.org/D141678
flang/lib/Lower/IntrinsicCall.cpp
flang/test/Lower/Intrinsics/spread.f90