[ARM] Allow distributing postinc with PHI uses
authorDavid Green <david.green@arm.com>
Mon, 20 Jun 2022 09:08:21 +0000 (10:08 +0100)
committerDavid Green <david.green@arm.com>
Mon, 20 Jun 2022 09:08:21 +0000 (10:08 +0100)
commit76f60931e2acedfe69aef614b07f902fbc814838
tree3f34f42fd7ce966ba7d1b864c11e7f7b0a71cff3
parent8c3fa31701c4b874138c52266e7ab96818092f47
[ARM] Allow distributing postinc with PHI uses

Although this doesn't usually come up, we can have uses of the
BaseAccess of a distributed postinc being a PHI. This doesn't need the
usual dominance check as we will dominate along the phi edge, allowing
us to still create a postinc load/store.

Differential Revision: https://reviews.llvm.org/D127676
llvm/lib/Target/ARM/ARMLoadStoreOptimizer.cpp
llvm/test/CodeGen/Thumb2/mve-pipelineloops.ll