Skip to content

Commit

Permalink
Update README entry.
Browse files Browse the repository at this point in the history
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@125658 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
eefriedman committed Feb 16, 2011
1 parent 7bccf6a commit c5cb996
Showing 1 changed file with 6 additions and 13 deletions.
19 changes: 6 additions & 13 deletions lib/Target/README.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1783,13 +1783,12 @@ entry:
}

Generated code:
addq %rcx, %rdx
movl $0, %eax
adcq $0, %rax
addq %r8, %rax
movq %rax, (%rdi)
movq %rdx, (%rsi)
ret
addq %rcx, %rdx
sbbq %rax, %rax
subq %rax, %r8
movq %r8, (%rdi)
movq %rdx, (%rsi)
ret

Expected code:
addq %rcx, %rdx
Expand All @@ -1798,12 +1797,6 @@ Expected code:
movq %rdx, (%rsi)
ret

The generated SelectionDAG has an ADD of an ADDE, where both operands of the
ADDE are zero. Replacing one of the operands of the ADDE with the other operand
of the ADD, and replacing the ADD with the ADDE, should give the desired result.

(That said, we are doing a lot better than gcc on this testcase. :) )

//===---------------------------------------------------------------------===//

Switch lowering generates less than ideal code for the following switch:
Expand Down

0 comments on commit c5cb996

Please sign in to comment.