OSDN Git Service

[AArch64]Merge narrow zero stores to a wider store
authorJun Bum Lim <junbuml@codeaurora.org>
Fri, 20 Nov 2015 21:14:07 +0000 (21:14 +0000)
committerJun Bum Lim <junbuml@codeaurora.org>
Fri, 20 Nov 2015 21:14:07 +0000 (21:14 +0000)
commitc8ef580c58935405e39f95245721f79053459b77
treeb87bac4566fcb469d56cf3ec98190335243b7a9a
parent3de08c62a1888cb7394b65b2f9b88e7e36530ea0
[AArch64]Merge narrow zero stores to a wider store

This change merges adjacent zero stores into a wider single store.
For example :
  strh wzr, [x0]
  strh wzr, [x0, #2]
becomes
  str wzr, [x0]

This will fix PR25410.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@253711 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/AArch64/AArch64LoadStoreOptimizer.cpp
test/CodeGen/AArch64/arm64-narrow-ldst-merge.ll [moved from test/CodeGen/AArch64/arm64-ldr-merge.ll with 81% similarity]