[PATCH] D51030: [AArch64] Optimise load(adr address) to ldr address

Dave Green via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 21 02:11:40 PDT 2018


dmgreen created this revision.
dmgreen added reviewers: peter.smith, efriedma, t.p.northover, olista01, john.brawn.
Herald added a reviewer: javed.absar.
Herald added a subscriber: kristof.beyls.

Providing that the load is known to be 4 byte aligned, we can optimise a ldr(adr address) to just ldr address.


https://reviews.llvm.org/D51030

Files:
  lib/Target/AArch64/AArch64ISelDAGToDAG.cpp
  test/CodeGen/AArch64/code-model-tiny-abs.ll
  test/CodeGen/AArch64/ldradr.ll
  test/CodeGen/AArch64/tiny_model.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D51030.161666.patch
Type: text/x-patch
Size: 7940 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180821/c21743ee/attachment.bin>


More information about the llvm-commits mailing list