[ARM] ARMLoadStoreOpt::UpdateBaseRegUses should stop on def
authorJohn Brawn <john.brawn@arm.com>
Tue, 23 Jun 2015 16:02:11 +0000 (16:02 +0000)
committerJohn Brawn <john.brawn@arm.com>
Tue, 23 Jun 2015 16:02:11 +0000 (16:02 +0000)
commitd86e004b7ec3f041b27171c209a8275600f4bc71
treeb6feea7f25eea7784ccae7b69d5bd7ddf59d76b1
parent5f7ade26d01f779fcec92d428ca738f8d12bc86a
[ARM] ARMLoadStoreOpt::UpdateBaseRegUses should stop on def

When UpdateBaseRegUses sees an instruction that defines the base
register it must stop, as the base register value it is updating is no
longer live. Ideally we would already have seen the register be killed
(which is already checked for), but the kill flags may be inaccurate
and we have to account for this.

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

llvm-svn: 240424
llvm/lib/Target/ARM/ARMLoadStoreOptimizer.cpp