[CodeGen] Properly propagating Calling Convention information when lowering vector...
authorLucas Prates <lucas.prates@arm.com>
Thu, 27 Aug 2020 14:31:40 +0000 (15:31 +0100)
committerLucas Prates <lucas.prates@arm.com>
Thu, 27 Aug 2020 16:01:10 +0000 (17:01 +0100)
commit3d943bcd223e5b97179840c2f5885fe341e51747
tree03000c27e8076099ea3201f805bbb6291a3eccc6
parentfddf543e6e01cb72ec1af48c5dd82c525bd3e47a
[CodeGen] Properly propagating Calling Convention information when lowering vector arguments

When joining the legal parts of vector arguments into its original value
during the lower of Formal Arguments in SelectionDAGBuilder, the Calling
Convention information was not being propagated for the handling of each
individual parts. The same did not happen when lowering calls, causing a
mismatch.

This patch fixes the issue by properly propagating the Calling
Convention details.

This fixes Bugzilla #47001.

Reviewed By: arsenm

Differential Revision: https://reviews.llvm.org/D86715
llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
llvm/test/CodeGen/ARM/fp16-args.ll
llvm/test/CodeGen/ARM/fp16-v3.ll