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 Use the new script to sort the includes of every file under lib. 2012-12-03 16:50:05 +00:00
Disassembler Use the new script to sort the includes of every file under lib. 2012-12-03 16:50:05 +00:00
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 Remove TargetELFWriterInfo. 2012-10-28 21:34:43 +00:00
LLVMBuild.txt
Makefile MIPS DSP: add code necessary for pseudo instruction lowering. 2012-09-27 01:59:07 +00:00
Mips16FrameLowering.cpp Use the new script to sort the includes of every file under lib. 2012-12-03 16:50:05 +00:00
Mips16FrameLowering.h Properly save and restore RA and Mips16 callee save registers S0,S1 2012-09-21 01:08:16 +00:00
Mips16InstrFormats.td Add basic ability to setup call frame, and make procedure calls. 2012-07-23 23:45:54 +00:00
Mips16InstrInfo.cpp Use the new script to sort the includes of every file under lib. 2012-12-03 16:50:05 +00:00
Mips16InstrInfo.h Sort includes for all of the .h files under the 'lib' tree. These were 2012-12-04 07:12:27 +00:00
Mips16InstrInfo.td Switch LLVM_USE_RVALUE_REFERENCES to LLVM_HAS_RVALUE_REFERENCES. 2012-11-30 11:45:22 +00:00
Mips16RegisterInfo.cpp Use the new script to sort the includes of every file under lib. 2012-12-03 16:50:05 +00:00
Mips16RegisterInfo.h Implement ADJCALLSTACKUP and ADJCALLSTACKDOWN 2012-10-31 05:21:10 +00:00
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 Add long branch expansion pass for MIPS. 2012-06-14 01:19:35 +00:00
Mips.td [mips] Delete unused sub-target features. 2012-12-07 03:04:05 +00:00
MipsAnalyzeImmediate.cpp Fix integer undefined behavior due to signed left shift overflow in LLVM. 2012-08-24 23:29:28 +00:00
MipsAnalyzeImmediate.h
MipsAsmPrinter.cpp [mips] Set HWEncoding field of registers. Use delete function 2012-12-10 20:04:40 +00:00
MipsAsmPrinter.h Sort includes for all of the .h files under the 'lib' tree. These were 2012-12-04 07:12:27 +00:00
MipsCallingConv.td Use the methods and classes that were added to simplify LowerCall and 2012-10-27 00:29:43 +00:00
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 MIPS DSP: other miscellaneous instructions. 2012-09-28 20:50:31 +00:00
MipsDSPInstrInfo.td MIPS DSP: other miscellaneous instructions. 2012-09-28 20:50:31 +00:00
MipsFrameLowering.cpp Use the new script to sort the includes of every file under lib. 2012-12-03 16:50:05 +00:00
MipsFrameLowering.h [mips] Add function MipsFrameLowering::estimateStackSize. 2012-11-02 21:10:22 +00:00
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 Use the new script to sort the includes of every file under lib. 2012-12-03 16:50:05 +00:00
MipsInstrInfo.h Make function loadImmediate a member of MipsSEInstrInfo and change it to return 2012-08-23 00:21:05 +00:00
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 Use the new script to sort the includes of every file under lib. 2012-12-03 16:50:05 +00:00
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 Classic JIT is still being supported by MIPS, along with MCJIT. 2012-12-03 23:11:12 +00:00
MipsJITInfo.h Classic JIT is still being supported by MIPS, along with MCJIT. 2012-12-03 23:11:12 +00:00
MipsLongBranch.cpp Use the new MIBundleBuilder class in the Mips target. 2012-12-07 04:23:40 +00:00
MipsMachineFunction.cpp Use the new script to sort the includes of every file under lib. 2012-12-03 16:50:05 +00:00
MipsMachineFunction.h Sort includes for all of the .h files under the 'lib' tree. These were 2012-12-04 07:12:27 +00:00
MipsMCInstLower.cpp Use the new script to sort the includes of every file under lib. 2012-12-03 16:50:05 +00:00
MipsMCInstLower.h MIPS DSP: add code necessary for pseudo instruction lowering. 2012-09-27 01:59:07 +00:00
MipsRegisterInfo.cpp Use the new script to sort the includes of every file under lib. 2012-12-03 16:50:05 +00:00
MipsRegisterInfo.h Add a member of type Mips16InstrInfo/MipsSEInstrInfo to class 2012-08-22 23:58:53 +00:00
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 Use the new script to sort the includes of every file under lib. 2012-12-03 16:50:05 +00:00
MipsSEFrameLowering.h Add definitions of two subclasses of MipsFrameLowering, Mips16FrameLowering and 2012-07-31 22:50:19 +00:00
MipsSEInstrInfo.cpp Use the new script to sort the includes of every file under lib. 2012-12-03 16:50:05 +00:00
MipsSEInstrInfo.h Make function loadImmediate a member of MipsSEInstrInfo and change it to return 2012-08-23 00:21:05 +00:00
MipsSelectionDAGInfo.cpp
MipsSelectionDAGInfo.h
MipsSERegisterInfo.cpp Use the new script to sort the includes of every file under lib. 2012-12-03 16:50:05 +00:00
MipsSERegisterInfo.h [mips] Stop reserving register AT and use register scavenger when a scratch 2012-11-03 00:05:43 +00:00
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 Use the new script to sort the includes of every file under lib. 2012-12-03 16:50:05 +00:00
MipsTargetMachine.h Sort includes for all of the .h files under the 'lib' tree. These were 2012-12-04 07:12:27 +00:00
MipsTargetObjectFile.cpp Use the new script to sort the includes of every file under lib. 2012-12-03 16:50:05 +00:00
MipsTargetObjectFile.h