Skip to content
  • Chris Lattner's avatar
    Finish implementing a readme entry: when inserting an i64 variable · b6387c8a
    Chris Lattner authored
    into a vector of zeros or undef, and when the top part is obviously
    zero, we can just use movd + shuffle.  This allows us to compile
    vec_set-B.ll into:
    
    _test3:
    	movl	$1234567, %eax
    	andl	4(%esp), %eax
    	movd	%eax, %xmm0
    	ret
    
    instead of:
    
    _test3:
    	subl	$28, %esp
    	movl	$1234567, %eax
    	andl	32(%esp), %eax
    	movl	%eax, (%esp)
    	movl	$0, 4(%esp)
    	movq	(%esp), %xmm0
    	addl	$28, %esp
    	ret
    
    llvm-svn: 48090
    b6387c8a
Loading