Don't attempt to divide INT_MIN by -1; consider such cases to
authorDan Gohman <gohman@apple.com>
Wed, 17 Feb 2010 00:41:53 +0000 (00:41 +0000)
committerDan Gohman <gohman@apple.com>
Wed, 17 Feb 2010 00:41:53 +0000 (00:41 +0000)
commit968cb939e5a00cb06aefafc89581645790c590b3
tree1de68e18151f0705201fc50f3542d46952e971bf
parentbd12fe8b693d90713f69353affdfdaa3bb09c26d
Don't attempt to divide INT_MIN by -1; consider such cases to
have overflowed.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@96428 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/LoopStrengthReduce.cpp
test/CodeGen/X86/lsr-overflow.ll [new file with mode: 0644]