[ARM] Expand distributing increments to also handle existing pre/post inc instructions.
authorDavid Green <david.green@arm.com>
Thu, 17 Sep 2020 15:58:35 +0000 (16:58 +0100)
committerDavid Green <david.green@arm.com>
Thu, 17 Sep 2020 15:58:35 +0000 (16:58 +0100)
commit7f7993e0daf459c308747f034e3fbd73889c7ab3
tree3de2e74095dbcd6a75e06c141601382b26a5a639
parent79b21fc187643416dbd21db10abe46a91b4c3f09
[ARM] Expand distributing increments to also handle existing pre/post inc instructions.

This extends the distributing postinc code in load/store optimizer to
also handle the case where there is an existing pre/post inc instruction,
where subsequent instructions can be modified to use the adjusted
offset from the increment. This can save us having to keep the old
register live past the increment instruction.

Differential Revision: https://reviews.llvm.org/D83377
llvm/lib/Target/ARM/ARMLoadStoreOptimizer.cpp
llvm/test/CodeGen/Thumb2/mve-postinc-distribute.mir
llvm/test/CodeGen/Thumb2/mve-vst2.ll
llvm/test/CodeGen/Thumb2/mve-vst3.ll