Fix an icmp+sdiv optimization to check for and handle an overflow
authorDan Gohman <gohman@apple.com>
Wed, 10 Sep 2008 23:30:57 +0000 (23:30 +0000)
committerDan Gohman <gohman@apple.com>
Wed, 10 Sep 2008 23:30:57 +0000 (23:30 +0000)
commit1df3fd66835453a5516fe3336cd725778b39be97
treecb0db8492395c2cba9c05da3f7aadf073062c5be
parent8c9c55fb48f2fd07f5a1aad3eb2204ad5af5fe78
Fix an icmp+sdiv optimization to check for and handle an overflow
condition. This fixes PR2740.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56076 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/InstructionCombining.cpp
test/Transforms/InstCombine/div-cmp-overflow.ll [new file with mode: 0644]