summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaTemplate.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-12-19 19:37:52 +0000
committerChris Lattner <sabre@nondot.org>2010-12-19 19:37:52 +0000
commit5e0c0c72e9da9a8f151e770aea709eb169abf56a (patch)
tree8d7d24fc49bcfd1e1db9faa4816da95621bb3e8e /clang/lib/Sema/SemaTemplate.cpp
parent33dc3f0cfa89384f6b4e5684e1f17c8b8353949d (diff)
downloadbcm5719-llvm-5e0c0c72e9da9a8f151e770aea709eb169abf56a.tar.gz
bcm5719-llvm-5e0c0c72e9da9a8f151e770aea709eb169abf56a.zip
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 llvm-svn: 122182
Diffstat (limited to 'clang/lib/Sema/SemaTemplate.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud