[PATCH] D21177: [Thumb-1] Select post-increment load and store where possible

James Molloy via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 9 04:39:34 PDT 2016


jmolloy created this revision.
jmolloy added reviewers: mcrosier, junbuml, t.p.northover.
jmolloy added a subscriber: llvm-commits.
jmolloy set the repository for this revision to rL LLVM.
Herald added a subscriber: rengolin.

Thumb-1 doesn't have post-inc or pre-inc load or store instructions. However the LDM/STM instructions with writeback can function as post-inc load/store:

      ldm r0!, {r1}  @ load from r0 into r1 and increment r0 by 4

Obviously, this only works if the post increment is 4.

Repository:
  rL LLVM

http://reviews.llvm.org/D21177

Files:
  lib/Target/ARM/ARMISelDAGToDAG.cpp
  lib/Target/ARM/ARMISelLowering.cpp
  lib/Target/ARM/ARMInstrThumb.td
  test/CodeGen/Thumb/ldm-stm-postinc.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D21177.60157.patch
Type: text/x-patch
Size: 9131 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160609/53892136/attachment.bin>


More information about the llvm-commits mailing list