diff options
author | Chris Lattner <sabre@nondot.org> | 2010-12-19 19:37:52 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-12-19 19:37:52 +0000 |
commit | e5cbdca3bd4bc40ca31282531a9292f70648d265 (patch) | |
tree | e3ce4ae2434bb2160c3cb96db2c3379b46cbd85c /lib/Support/Unix/Program.inc | |
parent | 26b482d7a76df3f67675ce852daed0eba709c63e (diff) |
recognize an unsigned add with overflow idiom into uadd.
This resolves a README entry and technically resolves PR4916,
but we still get poor code for the testcase in that PR because
GVN isn't CSE'ing uadd with add, filed as PR8817.
Previously we got:
_test7: ## @test7
addq %rsi, %rdi
cmpq %rdi, %rsi
movl $42, %eax
cmovaq %rsi, %rax
ret
Now we get:
_test7: ## @test7
addq %rsi, %rdi
movl $42, %eax
cmovbq %rsi, %rax
ret
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@122182 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Support/Unix/Program.inc')
0 files changed, 0 insertions, 0 deletions