llvm-6502/lib
Chris Lattner b09916bdfb Make X86TargetLowering::LowerSINT_TO_FP return without creating a dead
stack slot and store if the  SINT_TO_FP is actually legal.  This allows
us to compile:

double a(double b) {return (unsigned)b;}

to:

_a:
	cvttsd2siq	%xmm0, %rax
	movl	%eax, %eax
	cvtsi2sdq	%rax, %xmm0
	ret

instead of:

_a:
	subq	$8, %rsp
	cvttsd2siq	%xmm0, %rax
	movl	%eax, %eax
	cvtsi2sdq	%rax, %xmm0
	addq	$8, %rsp
	ret

crazy.



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47660 91177308-0d34-0410-b5e6-96231b3b80d8
2008-02-27 05:57:41 +00:00
..
Analysis De-tabify. 2008-02-26 10:51:52 +00:00
Archive Update gcc 4.3 warnings fix patch with recent head changes 2008-02-20 11:10:28 +00:00
AsmParser regenerate. 2008-02-26 23:19:08 +00:00
Bitcode Use SmallVector while constructing ReturnInst. 2008-02-26 19:38:17 +00:00
CodeGen Spiller now remove unused spill slots. 2008-02-27 03:04:06 +00:00
Debugger
ExecutionEngine Update gcc 4.3 warnings fix patch with recent head changes 2008-02-20 11:10:28 +00:00
Linker And final pack of warnings silencing 2008-02-20 11:27:04 +00:00
Support Fix a bug that caused opt and other tools to silently ignore 2008-02-23 01:55:25 +00:00
System Provide __main hooks for cygwin & mingw32 2008-02-22 10:08:31 +00:00
Target Make X86TargetLowering::LowerSINT_TO_FP return without creating a dead 2008-02-27 05:57:41 +00:00
Transforms Fix an issue where GVN had the sizes of the two memcpy's reverse, resulting 2008-02-26 23:06:17 +00:00
VMCore Add comment. 2008-02-27 01:20:54 +00:00
Makefile