[AArch64] Load/store opt: Don't count transient instructions towards search limits.
authorGeoff Berry <gberry@codeaurora.org>
Thu, 21 Jul 2016 15:20:25 +0000 (15:20 +0000)
committerGeoff Berry <gberry@codeaurora.org>
Thu, 21 Jul 2016 15:20:25 +0000 (15:20 +0000)
commit4ff2e36d32965bf76f9180ee15869a8922c988ba
treebfccc61ecc3c47b573900495a6f7410db15cd8e5
parent018b6d4ee4652b95515a288e0e9fe1bdf5035d0e
[AArch64] Load/store opt: Don't count transient instructions towards search limits.

Summary:
This change also changes findMatchingInsn and
findMatchingUpdateInsnForward to take DBG_VALUE opcodes into account
when tracking register defs and uses, which could potentially inhibit
these optimizations in the presence of debug information.

Reviewers: mcrosier

Subscribers: aemerson, rengolin, mcrosier, llvm-commits

Differential Revision: https://reviews.llvm.org/D22582

llvm-svn: 276293
llvm/lib/Target/AArch64/AArch64LoadStoreOptimizer.cpp
llvm/test/CodeGen/AArch64/ldst-opt-dbg-limit.mir [new file with mode: 0644]