[AArch64] Avoid SCALAR_TO_VECTOR for single FP constant vector.
authorFlorian Hahn <flo@fhahn.com>
Wed, 31 Mar 2021 08:38:12 +0000 (09:38 +0100)
committerFlorian Hahn <flo@fhahn.com>
Wed, 31 Mar 2021 09:17:36 +0000 (10:17 +0100)
commit52e015081a7768e1ba00a811a8e1a456f8aeecb4
tree6f595b95b5695e2e1addce921669884d438123e8
parent3ccbd4f3c7d164f7cb655ea15ab048176f7ba5b8
[AArch64] Avoid SCALAR_TO_VECTOR for single FP constant vector.

Currently the code only checks for integer constants (ConstantSDNode)
and triggers an infinite cycle for single-element floating point
vector constants. We need to check for both FP and integer constants.

Reviewed By: t.p.northover

Differential Revision: https://reviews.llvm.org/D99384
llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
llvm/test/CodeGen/AArch64/arm64-build-vector.ll