[AArch64] AArch64LoadStoreOptimizer: fix bug in pre-inc check iterator
authorGeoff Berry <gberry@codeaurora.org>
Tue, 9 Feb 2016 20:47:21 +0000 (20:47 +0000)
committerGeoff Berry <gberry@codeaurora.org>
Tue, 9 Feb 2016 20:47:21 +0000 (20:47 +0000)
commit173b14db7c9cef77787c629c6cd39436e1c4fbd4
tree18e8591724ff0e13738a34af13eec0bda3d5bf7a
parentcc5d61f98e5a3d5eee7547188cb250b8f2080675
[AArch64] AArch64LoadStoreOptimizer: fix bug in pre-inc check iterator

Summary:
Fix case where a pre-inc/dec load/store would not be formed if the
add/sub that forms the inc/dec part of the operation was the first
instruction in the block being examined.

Reviewers: mcrosier, jmolloy, t.p.northover, junbuml

Subscribers: aemerson, rengolin, mcrosier, llvm-commits

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

llvm-svn: 260275
llvm/lib/Target/AArch64/AArch64LoadStoreOptimizer.cpp
llvm/test/CodeGen/AArch64/arm64-nvcast.ll