[ARM] Mark MVE_VMOV_to_lane_32 as isInsertSubregLike
authorDavid Green <david.green@arm.com>
Tue, 2 Feb 2021 16:35:47 +0000 (16:35 +0000)
committerDavid Green <david.green@arm.com>
Tue, 2 Feb 2021 16:35:47 +0000 (16:35 +0000)
commit2753722b0fc1fe34c382277e2e6c7195dd573100
treefdb8cd2b615a5665d38f001386e67e3bc5aa552b
parent844f01fc9589b25a3427a6cf4ca406e6787ae171
[ARM] Mark MVE_VMOV_to_lane_32 as isInsertSubregLike

This allows the peephole optimizer to know that a MVE_VMOV_to_lane_32 is
the same as an insert subreg, allowing it to optimize some redundant
lane moves.

Differential Revision: https://reviews.llvm.org/D95433
llvm/lib/Target/ARM/ARMBaseInstrInfo.cpp
llvm/lib/Target/ARM/ARMInstrMVE.td
llvm/test/CodeGen/Thumb2/mve-vecreduce-add.ll
llvm/test/CodeGen/Thumb2/mve-vecreduce-mla.ll
llvm/test/CodeGen/Thumb2/mve-vst3.ll