[Flang][HLFIR] Relax size check for dot_product intrinsic
authorKiran Chandramohan <kiran.chandramohan@arm.com>
Tue, 18 Jul 2023 09:09:58 +0000 (09:09 +0000)
committerKiran Chandramohan <kiran.chandramohan@arm.com>
Tue, 18 Jul 2023 09:26:58 +0000 (09:26 +0000)
commit41f478f0419781f6968de0661ce570916c9de863
treed22e2222fdefc1da0bc44a5bd013a18a630c07f1
parent505335a99d46643eae7729c1d3ea7bf719c79382
[Flang][HLFIR] Relax size check for dot_product intrinsic

If the size of one of the operand arrays is not known at compile
time, do not issue a size mismatch error sinc they could match at
runtime.

Fixes the compilation error in polyhedron/induct2.

Reviewed By: tblah, vzakhari

Differential Revision: https://reviews.llvm.org/D155302
flang/lib/Optimizer/HLFIR/IR/HLFIROps.cpp
flang/test/Lower/HLFIR/dot_product.f90