HomePhabricator

[ARM] Add MVE insert-of-extract pattern

Authored by dmgreen on Feb 2 2021, 7:15 AM.

Description

[ARM] Add MVE insert-of-extract pattern

A v4i32 insert of an extract can become a simple lane move, as opposed
to round-tripping via a GPR. This adds a patterns that turns an v4i32
insert-extract pair into a EXTRACT_SUBREG/INSERT_SUBREG, with the
required COPY_TO_REGCLASS. These get better optimized into a simple lane
move by the rest of the backend.

Differential Revision: https://reviews.llvm.org/D95428

Details

Committed
dmgreenFeb 2 2021, 7:15 AM
Differential Revision
D95428: [ARM] Add MVE insert-of-extract pattern
Parents
rG903a153409b8: Ensure that the matcher is instantiated
Branches
Unknown
Tags
Unknown