[ARM] Add a SelectTAddrModeImm7 for MVE narrow loads and stores
authorDavid Green <david.green@arm.com>
Tue, 17 Sep 2019 15:32:28 +0000 (15:32 +0000)
committerDavid Green <david.green@arm.com>
Tue, 17 Sep 2019 15:32:28 +0000 (15:32 +0000)
commit91724b85307609f56eb2b547203107a578ea3fee
tree294e558c28202285d2a3b0672cfed74c761ef8de
parentc42ca16cfa07da901b00940397e1a321623fd577
[ARM] Add a SelectTAddrModeImm7 for MVE narrow loads and stores

We were previously using the SelectT2AddrModeImm7 for both normal and narrowing
MVE loads/stores. As the narrowing instructions do not accept sp as a register,
it makes little sense to optimise a FrameIndex into the load, only to have to
recover that later on. This adds a SelectTAddrModeImm7 which does not do that
folding, and uses it for narrowing load/store patterns.

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

llvm-svn: 372134
llvm/lib/Target/ARM/ARMISelDAGToDAG.cpp
llvm/lib/Target/ARM/ARMInstrMVE.td
llvm/test/CodeGen/Thumb2/mve-stack.ll