[all-commits] [llvm/llvm-project] 7704c5: [RISCV] Use positive 0.0 for the neutral element i...
Craig Topper via All-commits
all-commits at lists.llvm.org
Thu Dec 23 08:38:14 PST 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 7704c503ecb8b20574fa8a8dc45dd8545216c450
https://github.com/llvm/llvm-project/commit/7704c503ecb8b20574fa8a8dc45dd8545216c450
Author: Craig Topper <craig.topper at sifive.com>
Date: 2021-12-23 (Thu, 23 Dec 2021)
Changed paths:
M llvm/lib/Target/RISCV/RISCVISelLowering.cpp
M llvm/test/CodeGen/RISCV/rvv/fixed-vectors-reduction-fp.ll
M llvm/test/CodeGen/RISCV/rvv/vreductions-fp-sdnode.ll
Log Message:
-----------
[RISCV] Use positive 0.0 for the neutral element in fadd reductions if nsz is present.
-0.0 requires a constant pool. +0.0 can be made with vmv.v.x x0.
Not doing this in getNeutralElement for fear of changing other targets.
Differential Revision: https://reviews.llvm.org/D115978
More information about the All-commits
mailing list