[SelectionDAG] Replace the Chain in LOAD->VP_LOAD widening
authorFraser Cormack <fraser@codeplay.com>
Wed, 10 Nov 2021 12:19:16 +0000 (12:19 +0000)
committerFraser Cormack <fraser@codeplay.com>
Wed, 10 Nov 2021 17:49:12 +0000 (17:49 +0000)
commitb1d8d70b9deac9c71b903c2f7fa2cd5ed8f8cc0d
tree5c9a984f7d8ff785abbc4fa72f6aefb894542480
parent57bc7b108937d325187e5672daf63f2a31a89912
[SelectionDAG] Replace the Chain in LOAD->VP_LOAD widening

The introduction of this legalization, D111248, forgot to replace the
old chain with the new. This could manifest itself in the old
(illegally-typed) value remaining in the DAG, though the simple test
cases didn't catch this.

Reviewed By: craig.topper

Differential Revision: https://reviews.llvm.org/D113561
llvm/lib/CodeGen/SelectionDAG/LegalizeVectorTypes.cpp
llvm/test/CodeGen/RISCV/rvv/legalize-load-sdnode.ll