[PATCH] D14183: [AArch64]Extend merging narrow loads into a wider load

Jun Bum Lim via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 29 12:21:38 PDT 2015


junbuml created this revision.
junbuml added reviewers: jmolloy, ab, mzolotukhin, mcrosier.
junbuml added subscribers: aemerson, gberry, rengolin, llvm-commits.

This change extends r251438 to handle more narrow load promotions
including byte type, unscaled, and signed. For example, this change will
convert :
  ldursh w1, [x0, #-2]
  ldurh  w2, [x0, #-4]
    into
  ldur  w2, [x0, #-4]
  asr   w1, w2, #16
  and   w2, w2, #0xffff


http://reviews.llvm.org/D14183

Files:
  lib/Target/AArch64/AArch64LoadStoreOptimizer.cpp
  test/CodeGen/AArch64/arm64-ldp.ll
  test/CodeGen/AArch64/arm64-ldr-merge.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D14183.38753.patch
Type: text/x-patch
Size: 23792 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20151029/1eabd1d7/attachment.bin>


More information about the llvm-commits mailing list