[mips] Fix handling of instructions which copy to/from accumulator registers.
authorAkira Hatanaka <ahatanaka@mips.com>
Tue, 30 Apr 2013 23:22:09 +0000 (23:22 +0000)
committerAkira Hatanaka <ahatanaka@mips.com>
Tue, 30 Apr 2013 23:22:09 +0000 (23:22 +0000)
commitc147c1b994e1187cb471cdb7ee05f5f875eff4e0
treecb8374bc211e2f08f526dd29e1e24c1ca05161db
parent3484da9479a4daff3efc7febe004e1f4d69b3b4a
[mips] Fix handling of instructions which copy to/from accumulator registers.

Expand copy instructions between two accumulator registers before callee-saved
scan is done. Handle copies between integer GPR and hi/lo registers in
MipsSEInstrInfo::copyPhysReg. Delete pseudo-copy instructions that are not
needed.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@180827 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/Mips/Mips64InstrInfo.td
lib/Target/Mips/MipsDSPInstrInfo.td
lib/Target/Mips/MipsISelLowering.cpp
lib/Target/Mips/MipsInstrInfo.td
lib/Target/Mips/MipsRegisterInfo.td
lib/Target/Mips/MipsSEFrameLowering.cpp
lib/Target/Mips/MipsSEInstrInfo.cpp
test/CodeGen/Mips/spill-copy-acreg.ll [new file with mode: 0644]