llvm-6502/lib/Target/Mips
Evan Cheng 376642ed62 Some enhancements for memcpy / memset inline expansion.
1. Teach it to use overlapping unaligned load / store to copy / set the trailing
   bytes. e.g. On 86, use two pairs of movups / movaps for 17 - 31 byte copies.
2. Use f64 for memcpy / memset on targets where i64 is not legal but f64 is. e.g.
   x86 and ARM.
3. When memcpy from a constant string, do *not* replace the load with a constant
   if it's not possible to materialize an integer immediate with a single
   instruction (required a new target hook: TLI.isIntImmLegal()).
4. Use unaligned load / stores more aggressively if target hooks indicates they
   are "fast".
5. Update ARM target hooks to use unaligned load / stores. e.g. vld1.8 / vst1.8.
   Also increase the threshold to something reasonable (8 for memset, 4 pairs
   for memcpy).

This significantly improves Dhrystone, up to 50% on ARM iOS devices.

rdar://12760078


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@169791 91177308-0d34-0410-b5e6-96231b3b80d8
2012-12-10 23:21:26 +00:00
..
AsmParser
Disassembler
InstPrinter [CMake] Update dependencies to intrinsics_gen corresponding to r169711. 2012-12-10 05:27:15 +00:00
MCTargetDesc [mips] Set HWEncoding field of registers. Use delete function 2012-12-10 20:04:40 +00:00
TargetInfo
CMakeLists.txt
LLVMBuild.txt
Makefile
Mips16FrameLowering.cpp
Mips16FrameLowering.h
Mips16InstrFormats.td
Mips16InstrInfo.cpp
Mips16InstrInfo.h
Mips16InstrInfo.td
Mips16RegisterInfo.cpp
Mips16RegisterInfo.h
Mips64InstrInfo.td [mips] Delete nodes and instructions for dynamic alloca that are no longer in 2012-12-07 03:10:18 +00:00
Mips.h
Mips.td [mips] Delete unused sub-target features. 2012-12-07 03:04:05 +00:00
MipsAnalyzeImmediate.cpp
MipsAnalyzeImmediate.h
MipsAsmPrinter.cpp [mips] Set HWEncoding field of registers. Use delete function 2012-12-10 20:04:40 +00:00
MipsAsmPrinter.h
MipsCallingConv.td
MipsCodeEmitter.cpp [mips] Set HWEncoding field of registers. Use delete function 2012-12-10 20:04:40 +00:00
MipsCondMov.td [mips] Shorten predicate name. 2012-12-07 03:06:09 +00:00
MipsDelaySlotFiller.cpp Use the new MIBundleBuilder class in the Mips target. 2012-12-07 04:23:40 +00:00
MipsDSPInstrFormats.td
MipsDSPInstrInfo.td
MipsFrameLowering.cpp
MipsFrameLowering.h
MipsInstrFormats.td [mips] Shorten predicate name. 2012-12-07 03:06:09 +00:00
MipsInstrFPU.td [mips] Shorten predicate name. 2012-12-07 03:06:09 +00:00
MipsInstrInfo.cpp
MipsInstrInfo.h
MipsInstrInfo.td [mips] Delete nodes and instructions for dynamic alloca that are no longer in 2012-12-07 03:10:18 +00:00
MipsISelDAGToDAG.cpp
MipsISelLowering.cpp Some enhancements for memcpy / memset inline expansion. 2012-12-10 23:21:26 +00:00
MipsISelLowering.h Some enhancements for memcpy / memset inline expansion. 2012-12-10 23:21:26 +00:00
MipsJITInfo.cpp
MipsJITInfo.h
MipsLongBranch.cpp Use the new MIBundleBuilder class in the Mips target. 2012-12-07 04:23:40 +00:00
MipsMachineFunction.cpp
MipsMachineFunction.h
MipsMCInstLower.cpp
MipsMCInstLower.h
MipsRegisterInfo.cpp
MipsRegisterInfo.h
MipsRegisterInfo.td [mips] Set HWEncoding field of registers. Use delete function 2012-12-10 20:04:40 +00:00
MipsRelocations.h
MipsSchedule.td
MipsSEFrameLowering.cpp
MipsSEFrameLowering.h
MipsSEInstrInfo.cpp
MipsSEInstrInfo.h
MipsSelectionDAGInfo.cpp
MipsSelectionDAGInfo.h
MipsSERegisterInfo.cpp
MipsSERegisterInfo.h
MipsSubtarget.cpp [mips] Delete unused sub-target features. 2012-12-07 03:04:05 +00:00
MipsSubtarget.h [mips] Delete unused sub-target features. 2012-12-07 03:04:05 +00:00
MipsTargetMachine.cpp
MipsTargetMachine.h
MipsTargetObjectFile.cpp
MipsTargetObjectFile.h