[SDAG] Fix neutral value for vecreduce_fadd
authorNikita Popov <nikita.ppv@gmail.com>
Thu, 29 Oct 2020 20:27:59 +0000 (21:27 +0100)
committerNikita Popov <nikita.ppv@gmail.com>
Thu, 29 Oct 2020 20:27:59 +0000 (21:27 +0100)
commita5f172927df578fe06e4b28da48d979458c88e0a
treece96ddc29d9b8c7ae7aaabc62db2bd6c1dc142b4
parentfa48ff3fc981783483bcf609798fbb48524300ba
[SDAG] Fix neutral value for vecreduce_fadd

The neutral value for FADD is -0.0, not 0.0, so this is what we
need to pad vectors with.
llvm/lib/CodeGen/SelectionDAG/LegalizeVectorTypes.cpp
llvm/test/CodeGen/AArch64/vecreduce-fadd-legalization.ll