InstCombine: Strength reduce sadd.with.overflow into a regular nsw add if we can...
authorBenjamin Kramer <benny.kra@googlemail.com>
Fri, 4 Jul 2014 10:22:21 +0000 (10:22 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Fri, 4 Jul 2014 10:22:21 +0000 (10:22 +0000)
commit9c1df9164c53fc2693e35253d97b273f9496467d
tree9af63536358af438f6b78549d33aa587c78e3521
parenta39d3ab81983cb73d2fd0e0eb98cf858a3dcfdd4
InstCombine: Strength reduce sadd.with.overflow into a regular nsw add if we can prove that it cannot overflow.

PR20194

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@212331 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/InstCombine/InstCombineCalls.cpp
test/Transforms/InstCombine/intrinsics.ll