Skip to content
  • Chris Lattner's avatar
    now that addc/adde are gone, "ADDC" in the X86 backend uses EFLAGS results, · 5c00d416
    Chris Lattner authored
    the same as setcc.  Optimize ADDC(0,0,FLAGS) -> SET_CARRY(FLAGS).  This is
    a step towards finishing off PR5443.  In the testcase in that bug we now  get:
    
    	movq	%rdi, %rax
    	addq	%rsi, %rax
    	sbbq	%rcx, %rcx
    	testb	$1, %cl
    	setne	%dl
    	ret
    
    instead of:
    
    	movq	%rdi, %rax
    	addq	%rsi, %rax
    	movl	$0, %ecx
    	adcq	$0, %rcx
    	testq	%rcx, %rcx
    	setne	%dl
    	ret
    
    llvm-svn: 122219
    5c00d416
Loading