[PATCH] D14902: [AArch64] Promote loads from stored

Jun Bum Lim via llvm-commits llvm-commits at lists.llvm.org
Sat Nov 21 07:31:58 PST 2015


junbuml created this revision.
junbuml added reviewers: mcrosier, jmolloy, t.p.northover, ab, mzolotukhin.
junbuml added a subscriber: llvm-commits.
Herald added subscribers: rengolin, aemerson.

This change promote load instructions which directly read from stored by
replacing the loads with bitfield extracts.

For example :
  STRWui %W1, %X0, 1
  %W0 = LDRHHui %X0, 3
becomes
  STRWui %W1, %X0, 1
  %W0 = UBFMWri %W1, 16, 31

http://reviews.llvm.org/D14902

Files:
  lib/Target/AArch64/AArch64LoadStoreOptimizer.cpp
  test/CodeGen/AArch64/arm64-alloca-frame-pointer-offset.ll
  test/CodeGen/AArch64/arm64-ld-from-st.ll
  test/CodeGen/AArch64/regress-tblgen-chains.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D14902.40869.patch
Type: text/x-patch
Size: 34432 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20151121/6b763887/attachment.bin>


More information about the llvm-commits mailing list