[PATCH] D40831: [AArch64] Only use writeback in the load/store optimizer when needed

John Brawn via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Dec 5 03:44:47 PST 2017


john.brawn created this revision.
Herald added subscribers: kristof.beyls, javed.absar, rengolin, aemerson.

Currently the load/store optimizer always uses writeback when merging an add with a load or store, even if it isn't necessary, which prevents optimization in cases where a load destination is the same register as the base. This patch makes it only use writeback when necessary, allowing us to optimise such cases.


Repository:
  rL LLVM

https://reviews.llvm.org/D40831

Files:
  lib/Target/AArch64/AArch64LoadStoreOptimizer.cpp
  test/CodeGen/AArch64/ldst-opt.ll
  test/CodeGen/AArch64/ldst-opt.mir

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D40831.125492.patch
Type: text/x-patch
Size: 13336 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20171205/08edb400/attachment.bin>


More information about the llvm-commits mailing list