llvm-6502/lib
Bill Wendling e09b2a0d49 When inferring the pointer alignment, if the global doesn't have an initializer
and the alignment is 0 (i.e., it's defined globally in one file and declared in
another file) it could get an alignment which is larger than the ABI allows for
that type, resulting in aligned moves being used for unaligned loads.

For instance, in file A.c:

   struct S s;

In file B.c:
   struct {
     // something long
   };
   extern S s;

   void foo() {
     struct S p = s;
     // ...
   }

this copy is a 'memcpy' which is turned into a series of 'movaps' instructions
on X86. But this is wrong, because 'struct S' has alignment of 4, not 16.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140902 91177308-0d34-0410-b5e6-96231b3b80d8
2011-09-30 23:19:55 +00:00
..
Analysis indvars: generalize SCEV getPreStartForSignExtend. 2011-09-28 17:02:54 +00:00
Archive
AsmParser
Bitcode
CodeGen When inferring the pointer alignment, if the global doesn't have an initializer 2011-09-30 23:19:55 +00:00
DebugInfo
ExecutionEngine MCJIT initialization TargetData 2011-09-30 16:40:10 +00:00
Linker
MC Add definition of MipsELFObjectWriter. 2011-09-30 21:55:40 +00:00
Object Object: Add isSection{Data,BSS}. 2011-09-28 20:57:30 +00:00
Support Fix a bug in compare_numeric(). 2011-09-30 17:03:55 +00:00
Target Store sub-class lists as a bit vector. 2011-09-30 22:19:07 +00:00
Transforms Don't modify constant in-place. 2011-09-30 19:58:46 +00:00
VMCore Tracing or debug-printing a newly formed instruction should not crash. 2011-09-30 19:50:40 +00:00
CMakeLists.txt
Makefile