]> granicus.if.org Git - llvm/commit
[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)
commitfa16ddf26fb542808d53aee8c2907e80e95fdd00
tree5d49c408b7920a45174a5a7ccc0744aeed0ab7c6
parentf6b22714030a3ccf876d7a12e44464381ea8277e
[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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@372134 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/ARM/ARMISelDAGToDAG.cpp
lib/Target/ARM/ARMInstrMVE.td
test/CodeGen/Thumb2/mve-stack.ll