LLVM backend for 6502
Go to file
Chris Lattner 3ddcc43040 fix the BuildVector -> unpcklps logic to not do pointless shuffles
when the top elements of a vector are undefined.  This happens all
the time for X86-64 ABI stuff because only the low 2 elements of
a 4 element vector are defined.  For example, on:

_Complex float f32(_Complex float A, _Complex float B) {
  return A+B;
}

We used to produce (with SSE2, SSE4.1+ uses insertps):

_f32:                                   ## @f32
	movdqa	%xmm0, %xmm2
	addss	%xmm1, %xmm2
	pshufd	$16, %xmm2, %xmm2
	pshufd	$1, %xmm1, %xmm1
	pshufd	$1, %xmm0, %xmm0
	addss	%xmm1, %xmm0
	pshufd	$16, %xmm0, %xmm1
	movdqa	%xmm2, %xmm0
	unpcklps	%xmm1, %xmm0
	ret

We now produce:

_f32:                                   ## @f32
	movdqa	%xmm0, %xmm2
	addss	%xmm1, %xmm2
	pshufd	$1, %xmm1, %xmm1
	pshufd	$1, %xmm0, %xmm3
	addss	%xmm1, %xmm3
	movaps	%xmm2, %xmm0
	unpcklps	%xmm3, %xmm0
	ret

This implements rdar://8368414


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@112378 91177308-0d34-0410-b5e6-96231b3b80d8
2010-08-28 17:28:30 +00:00
autoconf remove the MSIL backend. It isn't maintained, is buggy, has no testcases 2010-08-28 16:33:36 +00:00
bindings Remove unions from the ocaml bindings. 2010-08-28 09:47:42 +00:00
cmake Updated CMake library dependencies. Removed unnecessary component name 2010-08-26 02:29:53 +00:00
docs remove the MSIL backend. It isn't maintained, is buggy, has no testcases 2010-08-28 16:33:36 +00:00
examples Trailing whitespace. 2010-08-19 20:03:53 +00:00
include remove unions from LLVM IR. They are severely buggy and not 2010-08-28 04:09:24 +00:00
lib fix the BuildVector -> unpcklps logic to not do pointless shuffles 2010-08-28 17:28:30 +00:00
projects Remove bogus link. 2010-07-16 06:33:36 +00:00
runtime
test fix the BuildVector -> unpcklps logic to not do pointless shuffles 2010-08-28 17:28:30 +00:00
tools Straighten out any triple strings passed on the command line before 2010-08-28 01:30:02 +00:00
unittests StringRef::compare_numeric also differed from StringRef::compare for characters > 127. 2010-08-26 15:25:35 +00:00
utils more dead thing zapping. 2010-08-28 03:43:50 +00:00
website
build-for-llvm-top.sh
CMakeLists.txt CMake: system for providing llvm-config-like features to the user. 2010-08-09 03:26:43 +00:00
configure remove the MSIL backend. It isn't maintained, is buggy, has no testcases 2010-08-28 16:33:36 +00:00
CREDITS.TXT long past time I added myself to this, I suppose. 2010-07-19 22:04:28 +00:00
LICENSE.TXT
llvm.spec.in
Makefile llvmc: remove dynamic plugins. 2010-08-15 07:07:12 +00:00
Makefile.common
Makefile.config.in Make the makefiles go much faster by using the realpath 2010-08-03 22:53:22 +00:00
Makefile.rules Fix the "Finished Creating" messages for aliases to print the 2010-08-18 01:35:53 +00:00
ModuleInfo.txt
README.txt (Hopefully) One last test. 2010-07-27 00:04:55 +00:00

\Low Level Virtual Machine (LLVM)
================================

This directory and its subdirectories contain source code for the Low Level
Virtual Machine, a toolkit for the construction of highly optimized compilers,
optimizers, and runtime environments.

LLVM is open source software. You may freely distribute it under the terms of
the license agreement found in LICENSE.txt.

Please see the HTML documentation provided in docs/index.html for further
assistance with LLVM.

If you're writing a package for LLVM, see docs/Packaging.html for our
suggestions.