diff options
| author | Manman Ren <mren@apple.com> | 2012-05-31 17:20:29 +0000 |
|---|---|---|
| committer | Manman Ren <mren@apple.com> | 2012-05-31 17:20:29 +0000 |
| commit | 9bccb64e561a1cf8f38f336e26c59cb814b11b91 (patch) | |
| tree | f0e5fee9631c4738d24ba1d12fc6efec8ec18477 /lldb/source/Expression/ExpressionSourceCode.cpp | |
| parent | fa9d7db17b76a6c139e28613a743950c719a1d36 (diff) | |
| download | llvm-9bccb64e561a1cf8f38f336e26c59cb814b11b91.zip llvm-9bccb64e561a1cf8f38f336e26c59cb814b11b91.tar.gz llvm-9bccb64e561a1cf8f38f336e26c59cb814b11b91.tar.bz2 | |
X86: replace SUB with CMP if possible
This patch will optimize the following
movq %rdi, %rax
subq %rsi, %rax
cmovsq %rsi, %rdi
movq %rdi, %rax
to
cmpq %rsi, %rdi
cmovsq %rsi, %rdi
movq %rdi, %rax
Perform this optimization if the actual result of SUB is not used.
rdar: 11540023
llvm-svn: 157755
Diffstat (limited to 'lldb/source/Expression/ExpressionSourceCode.cpp')
0 files changed, 0 insertions, 0 deletions
