[AArch64] Handle missing store pair opportunity
authorJun Bum Lim <junbuml@codeaurora.org>
Thu, 31 Mar 2016 14:47:24 +0000 (14:47 +0000)
committerJun Bum Lim <junbuml@codeaurora.org>
Thu, 31 Mar 2016 14:47:24 +0000 (14:47 +0000)
commitcf9744367b6e9dc99a07c16894a51e6b9a5e7348
tree4b321370633399c2d1206bc3d5393ae087839e59
parent1931b01a6456182fe27b0fc840c689a38279ae59
[AArch64] Handle missing store pair opportunity

Summary:
This change will handle missing store pair opportunity where the first store
instruction stores zero followed by the non-zero store. For example, this change
will convert :

  str wzr, [x8]
  str w1, [x8, #4]
into:
  stp wzr, w1, [x8]

Reviewers: jmolloy, t.p.northover, mcrosier

Subscribers: flyingforyou, aemerson, rengolin, mcrosier, llvm-commits

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

llvm-svn: 265021
llvm/lib/Target/AArch64/AArch64LoadStoreOptimizer.cpp
llvm/test/CodeGen/AArch64/arm64-narrow-ldst-merge.ll