[ARM][LowOverheadLoops] Iteration count liveness
authorSam Parker <sam.parker@arm.com>
Wed, 30 Sep 2020 10:10:49 +0000 (11:10 +0100)
committerSam Parker <sam.parker@arm.com>
Thu, 1 Oct 2020 09:11:10 +0000 (10:11 +0100)
commit6ec5f324973dfbe7b4a489593dde5073ff63ff64
tree222621b2f531f1360d2e30cb72dad9457cbe9487
parent7b90516d479ca6aadf4e261747d62c854d6f5463
[ARM][LowOverheadLoops] Iteration count liveness

Before deciding to insert a [W|D]LSTP, check that defining LR with
the element count won't affect any other instructions that should be
taking the iteration count.

Differential Revision: https://reviews.llvm.org/D88549
llvm/lib/Target/ARM/ARMLowOverheadLoops.cpp
llvm/test/CodeGen/Thumb2/LowOverheadLoops/it-block-chain-store.mir
llvm/test/CodeGen/Thumb2/LowOverheadLoops/mov-after-dlstp.mir
llvm/test/CodeGen/Thumb2/LowOverheadLoops/mov-operand.ll