OSDN Git Service

[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)
commitd3a670dcad226dc6680c6270b3679244a27d4a50
tree1e4bab158917d169fc194fdb2ea91246435a7225
parenta9adb282141f80bab5a3aa44fd9060119a6e3a21
[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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@260275 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/AArch64/AArch64LoadStoreOptimizer.cpp
test/CodeGen/AArch64/arm64-nvcast.ll