[PATCH] D27425: [AArch64] Fold some refilled/spilled subreg COPYs

Geoff Berry via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Dec 5 13:06:09 PST 2016


gberry created this revision.
gberry added reviewers: MatzeB, qcolombet.
gberry added a subscriber: llvm-commits.
Herald added subscribers: mcrosier, rengolin, aemerson.

Extend AArch64 foldMemoryOperandImpl() to handle folding spills of
subreg COPYs with read-undef defs like:

  %vreg0:sub_32<def,read-undef> = COPY %WZR; GPR64:%vreg0

by widening the spilled physical source reg and generating:

  STRXui %XZR <fi#0>

as well as folding refills of similar COPYs like:

  %vreg0:sub_32<def,read-undef> = COPY %vreg1; GPR64:%vreg0, GPR32:%vreg1

by generating:

  %vreg0:sub_32<def,read-undef> = LDRWui <fi#0>


https://reviews.llvm.org/D27425

Files:
  lib/Target/AArch64/AArch64InstrInfo.cpp
  lib/Target/AArch64/AArch64InstrInfo.h
  test/CodeGen/MIR/AArch64/spill-fold.mir

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D27425.80315.patch
Type: text/x-patch
Size: 10940 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20161205/ba600f4b/attachment.bin>


More information about the llvm-commits mailing list