diff options
author | Chris Lattner <sabre@nondot.org> | 2010-12-20 01:37:09 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-12-20 01:37:09 +0000 |
commit | 23a0199f05fe61c4bde921d5729ed2b927657bcb (patch) | |
tree | 8e8ed38c5ca3e41a97332cc4730c770590d79dd8 /lib/CodeGen/MachineVerifier.cpp | |
parent | 636f15ff04c9188ea3bf91477fda1cc29f2c4a61 (diff) |
now that addc/adde are gone, "ADDC" in the X86 backend uses EFLAGS results,
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
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@122219 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/MachineVerifier.cpp')
0 files changed, 0 insertions, 0 deletions