llvm-6502/lib
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
..
Analysis Fix a typo in a comment. 2008-04-10 23:02:38 +00:00
Archive Change the MemoryBuffer::getFile* methods to take just a pointer to the 2008-04-01 18:04:03 +00:00
AsmParser regenerate 2008-04-06 23:07:54 +00:00
Bitcode API changes for class Use size reduction, wave 1. 2008-04-06 20:25:17 +00:00
CodeGen Drop ISD::MEMSET, ISD::MEMMOVE, and ISD::MEMCPY, which are not Legal 2008-04-12 04:36:06 +00:00
Debugger Change the MemoryBuffer::getFile* methods to take just a pointer to the 2008-04-01 18:04:03 +00:00
ExecutionEngine Add debugging code. 2008-04-12 00:22:01 +00:00
Linker API changes for class Use size reduction, wave 1. 2008-04-06 20:25:17 +00:00
Support Make several symbols static. 2008-04-10 21:11:47 +00:00
System Restore code to disable crash catcher on older OS X systems 2008-04-12 00:47:46 +00:00
Target Drop ISD::MEMSET, ISD::MEMMOVE, and ISD::MEMCPY, which are not Legal 2008-04-12 04:36:06 +00:00
Transforms Fix PR2213 by simultaneously making GVN more aggressive with the return values 2008-04-11 05:11:49 +00:00
VMCore Make several symbols static. 2008-04-10 21:11:47 +00:00
Makefile