llvm-6502/include/llvm
Dan Gohman 707e018423 Drop ISD::MEMSET, ISD::MEMMOVE, and ISD::MEMCPY, which are not Legal
on any current target and aren't optimized in DAGCombiner. Instead
of using intermediate nodes, expand the operations, choosing between
simple loads/stores, target-specific code, and library calls,
immediately.

Previously, the code to emit optimized code for these operations
was only used at initial SelectionDAG construction time; now it is
used at all times. This fixes some cases where rep;movs was being
used for small copies where simple loads/stores would be better.

This also cleans up code that checks for alignments less than 4;
let the targets make that decision instead of doing it in
target-independent code. This allows x86 to use rep;movs in
low-alignment cases.

Also, this fixes a bug that resulted in the use of rep;stos for
memsets of 0 with non-constant memory size when the alignment was
at least 4. It's better to use the library in this case, which
can be significantly faster when the size is large.

This also preserves more SourceValue information when memory
intrinsics are lowered into simple loads/stores.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@49572 91177308-0d34-0410-b5e6-96231b3b80d8
2008-04-12 04:36:06 +00:00
..
ADT improvements for IntrusiveRefCntPtr, patch by Mikhail Glushenkov 2008-04-11 16:42:06 +00:00
Analysis Make GVN more memory efficient, particularly on code that contains a large number of 2008-04-07 09:59:07 +00:00
Assembly Fix newly-introduced 4.3 warnings 2008-02-20 12:07:57 +00:00
Bitcode Added support for Create() calls that take an argument besides the 2008-04-07 21:36:46 +00:00
CodeGen Drop ISD::MEMSET, ISD::MEMMOVE, and ISD::MEMCPY, which are not Legal 2008-04-12 04:36:06 +00:00
Config Use C-style comments :) 2008-03-23 13:44:17 +00:00
Debugger rewrite SourceFile to be in terms of MemoryBuffer, not MappedFile. 2008-04-01 03:59:34 +00:00
ExecutionEngine Make ExecutionEngine::updateGlobalMapping return the old mapping. 2008-04-04 04:47:41 +00:00
Support Add CreateGetResult() 2008-04-08 20:41:22 +00:00
System Make getDirnameSep a static method (not part of Path's interface). 2008-04-07 22:01:32 +00:00
Target Drop ISD::MEMSET, ISD::MEMMOVE, and ISD::MEMCPY, which are not Legal 2008-04-12 04:36:06 +00:00
Transforms Factor a bunch of functionality related to memcpy and memset transforms out of 2008-04-09 08:23:16 +00:00
AbstractTypeUser.h
Argument.h Add a predicate to Argument to check for the StructRet attribute. 2008-02-17 23:22:28 +00:00
AutoUpgrade.h
BasicBlock.h API changes for class Use size reduction, wave 1. 2008-04-06 20:25:17 +00:00
CallGraphSCCPass.h PassInfo keep tracks whether a pass is an analysis pass or not. 2008-03-19 21:56:59 +00:00
CallingConv.h
Constant.h
Constants.h ConstantFP::get should be static. 2008-04-09 17:16:28 +00:00
DerivedTypes.h Update comments to use 2.0 syntax type names. 2008-04-09 18:24:25 +00:00
Function.h Convenience method for setting the nounwind 2008-04-08 07:23:58 +00:00
GlobalAlias.h API changes for class Use size reduction, wave 1. 2008-04-06 20:25:17 +00:00
GlobalValue.h
GlobalVariable.h API changes for class Use size reduction, wave 1. 2008-04-06 20:25:17 +00:00
InlineAsm.h
InstrTypes.h API changes for class Use size reduction, wave 1. 2008-04-06 20:25:17 +00:00
Instruction.def Add GetResultInst. First step for multiple return value support. 2008-02-19 22:15:16 +00:00
Instruction.h Add const qualifiers. 2008-04-09 18:31:41 +00:00
Instructions.h API changes for class Use size reduction, wave 1. 2008-04-06 20:25:17 +00:00
IntrinsicInst.h
Intrinsics.h Reimplement the parameter attributes support, phase #1. hilights: 2008-03-12 17:45:29 +00:00
Intrinsics.td Fix 80 column violations. 2008-03-04 03:19:19 +00:00
IntrinsicsARM.td
IntrinsicsCellSPU.td Final de-tabification. 2008-02-27 06:33:05 +00:00
IntrinsicsPowerPC.td
IntrinsicsX86.td Undo 48570. Correctly match mmx shift instructions with an immediate operand. 2008-03-21 00:40:09 +00:00
LinkAllPasses.h Factor a bunch of functionality related to memcpy and memset transforms out of 2008-04-09 08:23:16 +00:00
LinkAllVMCore.h prune unneeded #includes 2008-04-01 04:00:45 +00:00
Linker.h
LinkTimeOptimizer.h And final pack of warnings silencing 2008-02-20 11:27:04 +00:00
Module.h
ModuleProvider.h Add explicit keywords. 2008-03-25 22:06:05 +00:00
ParameterAttributes.h Various improvements suggested by Duncan 2008-03-13 04:33:03 +00:00
Pass.h Don't include <map> in Pass.h, which doesn't need it. This requires 2008-03-21 23:51:57 +00:00
PassAnalysisSupport.h
PassManager.h Give PassManager and FunctionPassManager a common base class, with 2008-03-11 16:41:42 +00:00
PassManagers.h Don't include <map> in Pass.h, which doesn't need it. This requires 2008-03-21 23:51:57 +00:00
PassSupport.h PassInfo keep tracks whether a pass is an analysis pass or not. 2008-03-19 21:56:59 +00:00
SymbolTableListTraits.h
Type.h add an assertion to catch a null PATypeHolder, patch by Erick Tryzelaar 2008-02-25 21:28:46 +00:00
TypeSymbolTable.h
Use.h test commit 2008-03-31 17:09:58 +00:00
User.h API changes for class Use size reduction, wave 1. 2008-04-06 20:25:17 +00:00
Value.h move the Use destructor where it belongs to 2008-03-14 22:03:02 +00:00
ValueSymbolTable.h