[AArch64] Fold more spilled/refilled COPYs.
authorGeoff Berry <gberry@codeaurora.org>
Thu, 1 Dec 2016 23:43:55 +0000 (23:43 +0000)
committerGeoff Berry <gberry@codeaurora.org>
Thu, 1 Dec 2016 23:43:55 +0000 (23:43 +0000)
commit7ffce7be0caabd4016acde2ba3a8d3ee82d52190
tree4d55335ed080b5f58c3d3d4693cea6f382b78d7a
parent5dda1128f17b6a79740d9f549bac4a3db5d45ac2
[AArch64] Fold more spilled/refilled COPYs.

Summary:
Make AArch64InstrInfo::foldMemoryOperandImpl more general by folding all
full COPYs between register classes of the same size that are either
spilled or refilled.

Reviewers: MatzeB, qcolombet

Subscribers: aemerson, rengolin, mcrosier, llvm-commits

Differential Revision: https://reviews.llvm.org/D27271

llvm-svn: 288439
llvm/lib/Target/AArch64/AArch64InstrInfo.cpp
llvm/test/CodeGen/AArch64/spill-fold.ll [new file with mode: 0644]
llvm/test/CodeGen/AArch64/zero-reg.ll