[VP] Correct LEGALPOS for more VP nodes.
authorCraig Topper <craig.topper@sifive.com>
Fri, 2 Sep 2022 15:04:27 +0000 (08:04 -0700)
committerCraig Topper <craig.topper@sifive.com>
Fri, 2 Sep 2022 15:04:28 +0000 (08:04 -0700)
commit5cf510115afd54d0f45035957a9ad0e3425bee6c
treec1fa412160467a155572645254f9925ffecd31f6
parentee761374f797a47919ec8f9f49f9b8b1b20573e8
[VP] Correct LEGALPOS for more VP nodes.

LEGALPOS appears to only be used by LegalizeVectorOps. It needs
to point at a vector operand. Stores need to point at the second
operand since the result and the first operand are MVT::Other.
Reductions need to point at the second operand since the result
and the first operand are scalsrs.

Reviewed By: rogfer01

Differential Revision: https://reviews.llvm.org/D133048
llvm/include/llvm/IR/VPIntrinsics.def