[SelectionDAG] Correctly determine the VECREDUCE_SEQ_FMUL action
authorFraser Cormack <fraser@codeplay.com>
Wed, 4 Aug 2021 16:38:27 +0000 (17:38 +0100)
committerFraser Cormack <fraser@codeplay.com>
Thu, 5 Aug 2021 08:42:33 +0000 (09:42 +0100)
commit0b8471e91bb62f1174a46607e6533fcea2ac12c6
treeab66151d42be747a8f152a95179fe920c2983f67
parent13c8ec44e6385127f4aaba333dcad705dd5888c6
[SelectionDAG] Correctly determine the VECREDUCE_SEQ_FMUL action

The LegalizeAction for this node should follow the logic for
`VECREDUCE_SEQ_FADD` and be determined using the vector operand's type.

here isn't an in-tree target that makes use of this, but I think it's safe to
say this is how it should behave, should a target want to customize the action
for this node.

Reviewed By: dmgreen

Differential Revision: https://reviews.llvm.org/D107478
llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp