OSDN Git Service

[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)
commitc7cf225724b845fa54304bd851145a5c758581d2
tree676fcef4bd6c0ef0fb74b2dfd9f505ecb6a5ccb7
parent14b34deb6887ca5bea98263f0a3f16b5419394f7
[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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@288439 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/AArch64/AArch64InstrInfo.cpp
test/CodeGen/AArch64/spill-fold.ll [new file with mode: 0644]
test/CodeGen/AArch64/zero-reg.ll