llvm-6502/lib
Chris Lattner f2369f2042 when we see a unaligned load from an insufficiently aligned global or
alloca, increase the alignment of the load, turning it into an aligned load.

This allows us to compile:

#include <xmmintrin.h>
__m128i foo(__m128i x){
 static const unsigned int c_0[4] = { 0, 0, 0, 0 };
	  __m128i v_Zero = _mm_loadu_si128((__m128i*)c_0);
  x  = _mm_unpacklo_epi8(x,  v_Zero);
  return x;
}

into:

_foo:
	punpcklbw	_c_0.5944, %xmm0
	ret
	.data
	.lcomm	_c_0.5944,16,4		# c_0.5944

instead of:

_foo:
	movdqu	_c_0.5944, %xmm1
	punpcklbw	%xmm1, %xmm0
	ret
	.data
	.lcomm	_c_0.5944,16,2		# c_0.5944



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@40971 91177308-0d34-0410-b5e6-96231b3b80d8
2007-08-09 19:05:49 +00:00
..
Analysis Make NonLocal and None const in the right way. :-) 2007-08-09 04:42:44 +00:00
Archive
AsmParser regenerate 2007-08-06 21:00:46 +00:00
Bitcode This is the patch to provide clean intrinsic function overloading support in LLVM. It cleans up the intrinsic definitions and generally smooths the process for more complicated intrinsic writing. It will be used by the upcoming atomic intrinsics as well as vector and float intrinsics in the future. 2007-08-04 01:51:18 +00:00
CodeGen Update per review comments. 2007-08-09 17:27:48 +00:00
Debugger switch this to bitcode instead of bytecode 2007-05-06 09:29:13 +00:00
ExecutionEngine
Linker Allow the filename "-" to be a place holder for stdin. This allows directing 2007-08-08 19:52:29 +00:00
Support Make getSTDIN return null if the standard input is empty, as the header file 2007-08-08 20:01:58 +00:00
System Fix PR1581, patch by Timo Savola 2007-07-31 06:00:51 +00:00
Target GR16_ sub-register class should be GR8_, not GR8. That is, it should only be 8-bit registers in 32-bit mode. Ditto for GR32_. 2007-08-09 18:05:17 +00:00
Transforms when we see a unaligned load from an insufficiently aligned global or 2007-08-09 19:05:49 +00:00
VMCore Speed up updateDFSNumbers with two observations: 2007-08-08 06:24:20 +00:00
Makefile build lib/Archive instead of lib/Bytecode 2007-05-06 19:50:06 +00:00