[ARM] Combine base-updating/post-incrementing vector load/stores.
authorAhmed Bougacha <ahmed.bougacha@gmail.com>
Wed, 10 Dec 2014 00:07:37 +0000 (00:07 +0000)
committerAhmed Bougacha <ahmed.bougacha@gmail.com>
Wed, 10 Dec 2014 00:07:37 +0000 (00:07 +0000)
commit605c40341b57a61058800c5852c97265bbc9de48
tree1e5196cb59fff7172ee0a6f4e59a7e111b185480
parent3490d23337b1bb4257c7109a09dfa3baeb02f90d
[ARM] Combine base-updating/post-incrementing vector load/stores.

We used to only combine intrinsics, and turn them into VLD1_UPD/VST1_UPD
when the base pointer is incremented after the load/store.

We can do the same thing for generic load/stores.

Note that we can only combine the first load/store+adds pair in
a sequence (as might be generated for a v16f32 load for instance),
because other combines turn the base pointer addition chain (each
computing the address of the next load, from the address of the last
load) into independent additions (common base pointer + this load's
offset).

Differential Revision: http://reviews.llvm.org/D6585

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@223862 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/ARM/ARMISelLowering.cpp
test/CodeGen/ARM/alloc-no-stack-realign.ll
test/CodeGen/ARM/memcpy-inline.ll
test/CodeGen/ARM/vector-load.ll [new file with mode: 0644]
test/CodeGen/ARM/vector-store.ll [new file with mode: 0644]
test/Transforms/LoopStrengthReduce/ARM/ivchain-ARM.ll